Hi, i'm trying to recreate a EA to delete pending order when it hit the price i input. But kept having error. tried to google up on the exact word that i should use" (???=My_Price_Target), but not able to. Or maybe the code i do is wrong? anyone could help please? thanks
Brother Mohammad ...
The code is full of errors ... Some are in the functions syntax and some in the logic itself ...
For example ...
--- if (Bid()= Price_Target) should be if (Bid >= Price_Target) or if (Bid <= Price_Target)
it depends on where is the price should be (above or bellow) Price_Target ... using < or > is a must to prevent price tick jump or gaps.
--- Why using ( ) for both Ask and Bid ?
--- Why not use vbid= MarketInfo(Symbol(),MODE_BID) instead of vbid= MarketInfo("Symbol",MODE_BID)
the same for vask
--- add "}" to the end of code.
--- I didn't reviewed the whole logic of the code.
If you tell the needed logic in details, I can help you with full code.
Regards ...
Brother Mohammad ...
The code is full of errors ... Some are in the functions syntax and some in the logic itself ...
For example ...
--- if (Bid()= Price_Target) should be if (Bid >= Price_Target) or if (Bid <= Price_Target)
it depends on where is the price should be (above or bellow) Price_Target ... using < or > is a must to prevent price tick jump or gaps.
--- Why using ( ) for both Ask and Bid ?
--- Why not use vbid= MarketInfo(Symbol(),MODE_BID) instead of vbid= MarketInfo("Symbol",MODE_BID)
the same for vask
--- add "}" to the end of code.
--- I didn't reviewed the whole logic of the code.
If you tell the needed logic in details, I can help you with full code.
Regards ...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, i'm trying to recreate a EA to delete pending order when it hit the price i input. But kept having error. tried to google up on the exact word that i should use" (???=My_Price_Target), but not able to. Or maybe the code i do is wrong? anyone could help please? thanks