NormalizeDouble((((barslow+barshigh/2)+barslow)/2),Digits)Print this out and consider if Bid is ever going to equal the result
barshigh =High[iHighest(NULL,Timeframe,MODE_HIGH,5,1)];You are mixing apples and oranges
thanks for your responses, i found the error, @ gumrai thank you
my price calculation was completly wrong :/
this works now:
NormalizeDouble(((((barslow+barshigh)/2)+barslow)/2),Digits))
@ Whroeder
thanks for your link
concerning High and iHigh, i'm using an integer called Timeframe, that has the same value as the current open chart, its just to avoid attaching to wrong timeframes.
in my case these 2 conditions are equal when i print the values out. if i need the values from a higher timeframe i have to use iHigh.
barshigh =iHigh(NULL,Timeframe,iHighest(NULL,Timeframe,MODE_HIGH,5,1)); barshigh2 =High[iHighest(NULL,Timeframe,MODE_HIGH,5,1)];

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
hi guys im triing to open orders if a spwcified prices between highs and lows is reached, but the ea does not open orders.
the findentry and buyconditionis called every tick, can someone help me to get this snall snippet working?
ist there maybe a problem with the speed of the whole program, i have lots of loops for eg takeprofit called in the startfunction.