Forum

how to enter order "x" pips away, and close pending limit orders

Hi, I need some assistance on changing my order to enter a limit order "x" pips away, for example 5 pips away, if AUD/USD is .7255, buy limit would be .7250, or if Eur/usd was 1.1558, sell limit would be 1.1563 This is the current buy/sell Order code I have for instant execution but I want to change

Help with check to close on new bar

I'm trying to make sure I have the right coding to check and execute a possible close of position After a new bar from opening a position. Can anyone confirm if this code is good. It seems as if each time it checks for close, it would set the "currentbar" again to datetime? void CheckForClose() {

Need help with trigger sell positions

Hi, any help is appreciated, I can't figure out why my EA only does buy positions. I need it to do sell positions also, on multiple time frames simultaneously. Here's the code: input int MagicNumber = 900 ; //Magic Number extern int period_RSI = 3