I draw 6 objects on my chart :
object name "blue1"
object name "yellow1"
object name "blue2"
object name "blue3"
object name "green2"
object name "blue4"
I want to open a new trade when price go close beyond the object which has the prefix "blue".
object name "blue1"
object name "yellow1"
object name "blue2"
object name "blue3"
object name "green2"
object name "blue4"
I want to open a new trade when price go close beyond the object which has the prefix "blue".
Inserted Code
if(iClose(_Symbol,_Period,1) > objectName ("blue%"){ //wrong syntax here, what is the right syntax for prefix "blue" on object name? OrderSend(_Symbol,OP_BUY , NormalizeDouble( Lot ,2 ) ,Ask,3, SL_TMP, TP_TMP ,"B1" ,0,0,Red); }