You need to store the ask price between ticks, you cant stall MT with a <wait while> as you have found out
extern int Gap.To.Order.Pips = 30; // 300 if sub-pip static double sdTargetPrice; init () { sdTargetPrice=0; } start() { if (sdTargetPrice==0) sdTargetPrice = Ask+Gap.To.Order.Pips*Point if (Ask > sdTargetPrice) { // Sell..... sdTargetPrice = 0; } }
FWIW
-BB-
no its the ask on the current that is the ilowest of the las 5 min
can you help me with that?
please help!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
im trying to do and expression that will get the current ask price and then wait till it gets to an higer ask level
im doing it now but the while expression stuck the MT4
i know it should be simple but sometimes simple stuff gets complicated
i will appreciate if anyone will be able to help me