Forum

Pls Help, Why does this code open more orders at similar price

extern double PB1= 104.000 ; // Buy price of Phase 1 extern double OS1= 0.01 ; // Order size of Phase 1 extern double SL1= 0.150 ; // Stop Loss of Phase 1 extern double TP1= 0.150 ; // Take Profit of Phase 1 extern double PBDip1= 1.000 ; // Dip Level for new buy in Phase 1 int start() { bool

Pls help, Why does this code not open a single trade in 20 years of back testing?

extern double PB1= 104.000 ; // Buy price of Phase 1 extern double OS1= 0.01 ; // Order size of Phase 1 extern double TP1= 100 ; // Take Profit of Phase 1 extern double PBDip1= 100 ; // Dip Level for new buy in Phase 1 extern double CL= 10 / 100 ; // Cut Loss level extern double PB2= 103.000 ; //

Can someone please help me correct the parenthesis and return

extern double PB1= 104000 ; // Buy price of Phase 1 extern double OS1= 0.01 ; // Order size of Phase 1 extern double TP1= 100 ; // Take Profit of Phase 1 extern double PBDip1= 100 ; // Dip Level for new buy in Phase 1 extern double CL= 10 / 100 ; // Cut Loss level extern double PB2= 103000 ; // Buy

Restart an EA from first line of code

Hi, I understand that there are cycle operators to keep the EA going back till the condition laid becomes true. But i would like to know like there is “continue” or “break” to break from the cycle operator. Same way is there any operator which sends the operation back to first line of the code from