Forum

chart open and close

Hi, I have an expert which opens (for example every 1 min.) charts of some symbols that may have potential for trade, when I trade some of them I need to close the other charts except those which I trade on them. So how can I have open only charts that have position on them? thank you in advance

finding time of a candle that I know its value buy I don't know its number

Hi, I want to find time of a candle that I know its value (e.g. value of the close of candle), but I don't no its number. Is there any way to find it? Thanks in advance

multiplying different variable type

Hi, what kind of variable type should I choose, if I want to use combination of variable, for example multiplying x*y x:(datetime) & y(double)

having problem with fractal finder function

#property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #property strict input ENUM_TIMEFRAMES time= PERIOD_H1 ; int OnInit () { for ( int j= 1 ; j< 100 ; j++) { if (find_first_down_fract(j)< Bid)

how to code a trendline

Hi, guys, I'm trying to write a code for trendline, but I don't know, where to start, is there anybody could help me and give me some clues. what approach should I follow? thanks in advance

problem with value of ObjectGetValueByTime for OBJ_TRENDBYANGLE

Hi, I have a problem with value of Trend_Line_By_Angle function. I can't get value of slope on any bars. I saw some same difficulties on forum, but none of answers could help me. apparently its because of ( line_id //line_number). i tried 0, OBJ_TRENDBYANGLE, and some other numbers, but it is