Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am using this in 1 minute candle. What I notice is that, depends on market movement, within same candle, it initially places buy signal and disappears depends on market movement and, after a while, it places short signal and again that disappears too.
May I know how to place these orders only once in a candle and it should not disappear once its placed.
Can you help answer these questions from other members on NexusFi?
Of course signals disappear in real-time on last bar if calculation includes last bar since MA calculation depends on close price and in your case current price can move above or below of MA while bar is not finished yet. So signals may appear or disappear on very last bar.
If you don't want to calculate on current bar but on previous one(s) then use Ref() to check signal for true/false on previous bar(s).
Or if in realtime you only want to do execute calculation on current bar when it is finished then i.e. use status( "lastbarend" )