Nephelion / Publications
Forum
How to open just 1 stop buy/sell order for each 24 hours?
Hello there, My strategy consists in sending a stop buy order just at the 00.00 (GMT(0)) hourly candle 2 pips above the previous high, and another stop sell order 2 pips below the previous low. I want these two orders to be sent just once for each 24 hours, starting at 00:00 (GMT(0)). At first it
iHighest and iLowest functions not working as I'd like them to.
Hello there, I'm trying to build an EA based on breakouts. I want it to open a buy order whenever the price is above the 30 day high and the RSI is below 70, and a sell order whenever the price is below the 30 day low and the RSI is above 30. This is the code that I've written for it, but for some
Why does my EA just open either short positions or long positions, but not both?
I don't know why this happens, but it's really annoying. My buy and sell functions are the following: bool Compra() { StopLoss= Ask - Pips()* 25 ; TakeProfit= Ask + Pips()* 50 ; int TicketNuevo= OrderSend ( NULL , OP_BUY , 0.025 , Ask , 10 , StopLoss, TakeProfit, NULL , MagicNumber, 0