NexusFi: Find Your Edge


Home Menu

 





DoubleMAPaint with sound arrows...


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 24 posts (0 thanks)
    2. looks_two Buster with 12 posts (0 thanks)
    3. looks_3 Peter with 8 posts (4 thanks)
    4. looks_4 sam028 with 7 posts (0 thanks)
    1. trending_up 25,943 views
    2. thumb_up 4 thanks given
    3. group 10 followers
    1. forum 68 posts
    2. attach_file 18 attachments




 
Search this Thread

DoubleMAPaint with sound arrows...

  #11 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599

sam,

Only glanced, but try placing the drawarrow code above where you have it in this section instead of the lastdirection < direction section.
 
Code
                            
if(rising)
                {
                    
RisingPlot.Set(bar 1val2);
                    
RisingPlot.Set(barval1);
                    if (
PaintBar)
                        
BarColor barColorUp;
                    
Signal.Set(1);
                }
                else if(
falling)
                {
                    
FallingPlot.Set(bar 1val2);
                    
FallingPlot.Set(barval1);
                    if (
PaintBar)
                        
BarColor barColorDown;
                    
Signal.Set(-1);
                }
                else
                {
                    
NeutralPlot.Set(bar 1val2);
                    
NeutralPlot.Set(barval1);
                    if (
PaintBar)
                        
BarColor barColorNeutral;                    
                    
Signal.Set(0);
                } 
Do something like
#(rising)
if (Signal[1] != 1 && FirstTickOfBar)
DrawArrowUp()

#(falling)
if (Signal[1] != -1 && FirstTickOfBar)
DrawArrowDown

Mike

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
10 thanks
  #12 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599

Sam,

Also that zip file has adxvma.cs with calculateonbarclose = true. Delete that line entirely. That is what is causing the 0 value line drops.

Mike

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #13 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Hum, not so easy:
- removing calculateonbarclose = true in adxvma.cs -> flat line
- restoring calculateonbarclose = true in adxvma.cs -> flat line again
- restarting NT (who knows...), same thing
Anyway, I'll have a look for placing the code in the other section, but it's time for trading now .


Big Mike View Post
Sam,

Also that zip file has adxvma.cs with calculateonbarclose = true. Delete that line entirely. That is what is causing the 0 value line drops.

Mike


Follow me on Twitter Started this thread Reply With Quote
  #14 (permalink)
 sukhsan 
Ottawa, Canada
 
Experience: Beginner
Platform: Ninja
Broker: Mirus,Zen-Fire
Trading: Currencies
Posts: 120 since Jun 2009
Thanks Given: 109
Thanks Received: 79

Hi,
If someone have problem with Adxvma in DMA paint, first import BigMike's ChannelThis indicator, then use this Double MA Paint, it will work, I did like this and working for me.

SSS

Reply With Quote
  #15 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


sam028 View Post
Hum, not so easy:
- removing calculateonbarclose = true in adxvma.cs -> flat line
- restoring calculateonbarclose = true in adxvma.cs -> flat line again
- restarting NT (who knows...), same thing
Anyway, I'll have a look for placing the code in the other section, but it's time for trading now .

Sam,

Add ADXVMA to your chart directly (forget DMA for a minute). If you set to calculate on bar close in chart properties and let a new bar form, does it work? It does here, and my ADXVMA.cs has the CalculateOnBarClose line set to false.

Mike

Attached Files
Elite Membership required to download: ADXVMA.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #16 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

I've tested that too, my (and yours) ADXVMA works fine with CalculateOnBarClose=false, but in a DoubleMA.
I tried to put sound/arrows somewhere else, but still have shadow arrows. Anyway, it's not too bad as it is now, with these limitations.


Big Mike View Post
Sam,

Add ADXVMA to your chart directly (forget DMA for a minute). If you set to calculate on bar close in chart properties and let a new bar form, does it work? It does here, and my ADXVMA.cs has the CalculateOnBarClose line set to false.

Mike


Follow me on Twitter Started this thread Reply With Quote
  #17 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


sam028 View Post
I've tested that too, my (and yours) ADXVMA works fine with CalculateOnBarClose=false, but in a DoubleMA.
I tried to put sound/arrows somewhere else, but still have shadow arrows. Anyway, it's not too bad as it is now, with these limitations.

Then probably what is happening is the statement is evaluating to true more than once, and the draw command is using unique names (ie "Up + CurrentBar") so it is not replacing the previous arrow.

Still, the underlying issue of why it is evaluating true more than once is a bit odd. I'm sorry I've not had a chance to test on my side, maybe I can get to it later today and shed some light based on a new perspective.

Thx Sam!

Mike

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #18 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599

Guys,

Here are two versions that I worked on yesterday.

You need to open the zip file manually, and copy contents to My Documents\NinjaTrader 6.5\bin\custom\indicators.

Then exit and re-load Ninja, or if you are technical you can Edit any indicator and re-compile.

These two zips fixed the following for me:
1) DoubleMA Paint arrows: No more multiple arrows
2) DoubleMA flatline: No more flatline

If you use ADXVMA setting of 1 it can still cause errors. But I confirmed errors with setting of 2 or above and these changes fixed it for me.

Let me know. Hopefully we can get this to a stable level and update the File Sharing section.

Mike

Attached Files
Elite Membership required to download: dmafix.zip
Elite Membership required to download: DoubleMAPaint.zip
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
Buster
 
Posts: 20 since Jun 2009
Thanks Given: 1
Thanks Received: 2

I did all that.
Put the files from the zips in indicators and compiled fine.
But when I uncheck calculate on bar close on 4 range it gives flatline on DoubleMaPaint.
It is ok until I step into live price past the border and it goes flatline.
If I move it back its ok but of course you cant see the current price.
Wonder if I did anything wrong?
Thanks.

Reply With Quote
  #20 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599



Buster View Post
I did all that.
Put the files from the zips in indicators and compiled fine.
But when I uncheck calculate on bar close on 4 range it gives flatline on DoubleMaPaint.
It is ok until I step into live price past the border and it goes flatline.
If I move it back its ok but of course you cant see the current price.
Wonder if I did anything wrong?
Thanks.

Can you confirm what you mean by "uncheck" calculate on bar close? Do you mean it is true or false?

I need to know:
- Which instrument? (ES, ZN?)
- What size chart? (you said 4 range, thx)
- What exact DoubleMA Paint settings did you use (MA length and types)

That way I can test on my side again.

Mike

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on December 13, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts