Forum

Change the symbol in a script execution

Hi. I wonder if you can change the symbol in a single execution of the script. I have a script that analyzes various candles symbol of the window where I throw it, and I would like, in the same execution, change the symbol and also analyze candles of the new symbol. All this is to not have to go

Trade context busy, three attempts

Hi. I'm using IsTradeAllowed () in a while loop (while (IsTradeAllowed () == false)) but only makes three attempts, after exit the loop. I would like not to go out of the loop until the order is placed. Can anyone help? Thanks

Update predefined variables inside "while"

int start() { . . . if (( Open [ 1 ]< Close [ 1 ]) && (hour == TimeHour ( TimeLocal ()))) //Here, Open[1] and Close[1] refers to last bar closed { OrderSend ( Symbol (),tipoop2,Lotesvinc,tipoopprice, 3 ,SL,TP, NULL , 0 , 0 ,White); cnt= 1 ; while (cnt== 1 ) { if (( Open [ 1 ]> Close [