ClassPriceActionTeste

Author: Copyright 2021, MetaQuotes Ltd.
0 Views
0 Downloads
0 Favorites
ClassPriceActionTeste
//+------------------------------------------------------------------+
//|                                        ClassPriceActionTeste.mq5 |
//|                                  Copyright 2021, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021, MetaQuotes Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"
#include <PAClass/CPriceAction.mqh>
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
  CPriceAction Object();
  ENUM_APPLIED_PRICE applied_price=PRICE_HIGH;
  int start_pos=0,count=15;
  string symbol=_Symbol;
  ENUM_TIMEFRAMES time_frame=_Period;
  double candle_price[];
 
  printf("Get Candles Price. Number of candles get %s",Object.GetCandles(applied_price,symbol,time_frame,start_pos,count,candle_price));
  printf("Candles Prices");
  ArrayPrint(candle_price); 
 
   
  }
//+------------------------------------------------------------------+

Comments