Forum

How to get the time of highest price?

I know to get the highest price int bar_index= iHighest (symbol, PERIOD_W1 , MODE_HIGH , 0 , 0 ); double hg= iHigh (symbol, PERIOD_W1 ,bar_index); datetime bar_time= iTime (symbol, PERIOD_W1 ,bar_index) bar_time is the time of the candle but I need the time of the high price

How to use switch?

switch (x) { case 1 to 4 : g= 1 ; break ; case 5 to 7 : g= 2 ; break; . . . } not working even case 1 - 4

How can I run EA on history several times?

I want to run OnTick on history in different symbols one after the other Each time the balance must be reset Is it possible to do it via code

How to break in debugger via command?

Is there any command to stop running program without breakpoint

How to check if market is open for some symbols?

SymbolInfoSessionTrade works only for the symbol of the current chart How can I get info about other symbols

How to add a string with specific size, to structure?

How to add a string with specific size, to structure

Is it possible to change code while debugging and continue run it?

Is it possible to change code while debugging and continue run it

How to prevent opposite deal after stoploss in strategy tester?

In strategy testing, after the order has reached SL, then an opposite order is created, can this be prevented