What are you asking?
I think he needs the "previous bid".
as far as I know only high,low,open,close are automatic indexed and avaiable using arrays like high[1],high[2], etc
Yes, I'm asking for the previous bid.
I know that bid is not a stored variable, but I'm asking if there is a way to write a cross of the bid price over High[1].
At the moment I write bid > High[1] and then my expert go long only if there are no opened trades on that cross. I don't like this way to proceed.
I think that a good improvement for this software would be to create a predefined function in order to identify a cross, like in Metastock language.
If it is not stored, store it yourself.
Store last 10 bids...
bids[10]; int start(){ for(i = 9; i > 0; i--){ bids[i] = bids[i-1]; } bids[0] = Bid; if(bid[1] >= x && bid[0] < x) then something...

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, is there the possibility to write a condition like this?
If (Bid > High[1] && prevoious Bid < High[1])
{ .... }
instead of an indicator that check the opened positions?
Thank you!
Alberto