Forum

IndicatorCreate Not Set Color

Hi i try set color for create indicator but not set color void OnStart () { MqlParam params[]; int handle; ArrayResize (params, 5 ); //--- set ma_period params[ 0 ].type = TYPE_INT ; params[ 0 ].integer_value=20; //--- set ma_shift params[ 1 ].type = TYPE_INT ;

Why Not work CopyTicksRange?

int OnInit () { MqlTick tick_Range[] , tick[] ; int copied_Range , copied ; datetime Start = D'2016.11.11' ; datetime End = D'2016.12.12' ; copied_Range = CopyTicksRange( Symbol () , tick_Range , COPY_TICKS_TRADE , Start , End ); copied = CopyTicks

How i can get all symbol rates of market watch Without full my CPU

Hi . i make this cod for get rates of all symbol in marketwatch But when number of symbol in market watch is too much ( 300 symbol ) my CPU Be filled slowly & empty slowly for example any copyRates use 2% of my CPU and i think after any CopyRates my CPU must be empty and then refill another 2% But

How I can Specify Active Window Chart

Hi I have a function & put on a expert . i open 10 chart & add expert to all of them but i want function work just on selected chart not other chart when i select another chart now i want function work on this selected chart for this i need specify active chart to put condition for run function

How I solve This Problem

how i solve this problem? before fill buffer with my data i use this method for empty buffer . PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0); But i don't know why happen this problem thank you for guide me

Next Build Release Metatrader5

when release next build of metatrader 5

I need access to past data - Ask & Bid data

Hi . I need access to past data - Ask & Bid data I know "CopyTick Function" do copy ask data &... in array. but this way have a problem Problem 1 - limit 2000 tick Problem 2 - This function just work in Market hours But I know all data more than 2000 tick & any time unlimited exist on my hard drive