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 needing some help with getting an order to enter once a doublema changes from falling to rising.
I have tried several things, but can't get it to work at the correct spots.
I just need help with the entry trigger. When DoubleMA changes from falling to rising (it changes colour anyway) I would like to enter a long.
I would like to only take one trade per change from falling to rising as well.
As it is not crossing over anything, I am confused.
Thanks in advance
Regards
Can you help answer these questions from other members on NexusFi?
first of all - i dont like these big indicator-codes like the DMA-stuff in strategys - thats why the first step would be to create a new small indicator or reducing it to an easy formular (without all color+parameter-things) wich hits what i needs -- example :
ZeroLagEMA(ZeroLagEMA(period), period)
than as condition a would try this :
if
ZeroLagEMA(ZeroLagEMA(period), period) [0] > ZeroLagEMA(ZeroLagEMA(period), period) [1]
... do something
if
ZeroLagEMA(ZeroLagEMA(16), 16) [0] > ZeroLagEMA(ZeroLagEMA(16), 16) [1]
... ENTER long ...
If this easy thing does what you want, you can go on + add more conditions
thats my why of building up + testing conditions.
Mike,
I am wondering how I can use this information in a strategy please.
I am a real novice when it comes to C#.
"I released a newer version of DoubleMA with more moving averages and a Signal dataseries (0 neutral, -1 short, 1 long).
Could you please provide an example?
ie: if
(DoubleMA(45,NinjaTrader.Indicator.DoubleMA_internal.DMAType.EMA,45,NinjaTrader.Indicator.DoubleMA_internal.DMAType.EMA).signal[1]
Keep in mind if you use the wizard it places + sign instead of . in a couple of places, you need to manually change it, but your string above seems fine.
Thanks Mike.
I tried it and it ame me an error of:Cannot implicitly convert type 'double' to 'bool'
So I tried this:
if (DoubleMA(30,NinjaTrader.Indicator.DoubleMA_internal.DMAType.ZeroLagEMA,30,NinjaTrader.Indicator.DoubleMA_internal.DMAType.ZeroLagEMA).Signal[1] > DoubleMA(30,NinjaTrader.Indicator.DoubleMA_internal.DMAType.ZeroLagEMA,30,NinjaTrader.Indicator.DoubleMA_internal.DMAType.ZeroLagEMA).Signal[-1])
{
EnterLongLimit(DefaultQuantity, GetCurrentAsk(), "Long");
}
It compiled but doesn't work.
All I am trying to do it enter a long after the DMA goes from falling to rising. I must be dumb.
Sorry