successfully created my first ea...based on buy and sell
-
successfully created my first ea without any programming skills..
the only problem i am facing is to set trades to open in next candle after arrow signal appears..
i don't know if the problem is from the custom indicator..
example:- a buy signal arrow appears on bullish candle and disappear when the candle becomes bearish... it will keep blinking if the candle goes up and down..
is there a way to make the ea place trade on candle close after arrow signal -
That means your indicator is one of those repainting. Are you basing your strategy on a repainting indicator? Did you evaluate the consecuences on backtesting it? Results will not be reliable, I'm afraid.
-
Thanks for your reply... i created the indicator using 'meta editor"
i have solved the above problem.. by changing the [for( shift = CountBars-SSP; shift>=0; shift-- )] to [for( shift = CountBars-SSP; shift>=1; shift-- )]
the problem am having now is that it does not open trades after replacing with 1 but works when its 0 -
Can you please share you project to take a look?
-
You can trade only on candle 0.
-
May it be that shift is a variable name that fxdreema internally uses? I was facing the same issue with a custom indicator last night. I changed the variable name in the indicator and all was fine.
-
@l-andorrà said in successfully created my first ea...based on buy and sell:
That means your indicator is one of those repainting. Are you basing your strategy on a repainting indicator? Did you evaluate the consecuences on backtesting it? Results will not be reliable, I'm afraid.
@l-andorrà I think most indicators repaint on current bar unless they take open price of candle for calculations.
-
@ask4abusaidu Make sure you specify candle ID 1 at more settings.
The 0 candle is always changing. So if indicator settled, and we passed that candle, trade. -
Hello sorry for the late response... i did changes the candle id to 1 and it worked perfectly..
Thanks