Is there a GetPriceAsk/Bid() function in EA_wizard?
1 replies
aaronhay
10 years ago #111616
I’m not sure how to go about the following, I want to enter long/short when price hits currentprice +/- x number of pips.
Another way was to enter long/short when price (ask or bid) gets +/- x number of pips above/below a range.
Thanks,
Aaron Hay
Mark Fric
10 years ago #122728
Hello Aaron,
you have Ask and Bid functions in Price Data, you can use them for this.
The condition could be like:
IF (Ask > (Close[1] + ConvertToRealPips(5)))
THEN OpenOrder
In the example if Ask price is bigger than previous Close + 5 pips then it opens a trade.
Mark
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)