DoubleMAPaint with sound arrows... - NinjaTrader Programming | futures io social day trading
futures io futures trading


DoubleMAPaint with sound arrows...
Updated: Views / Replies:12,920 / 68
Created: by sam028 Attachments:18

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 18  
 
Thread Tools Search this Thread
 

DoubleMAPaint with sound arrows...

  #11 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received

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

Reply With Quote
 
  #12 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received

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

Reply With Quote
 
  #13 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received


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


Reply With Quote
 
  #14 (permalink)
Elite Member
KANATA,ON Canada
 
Futures Experience: Beginner
Platform: Ninja
Broker/Data: Mirus,Zen-Fire
Favorite Futures: Currencies
 
sukhsan's Avatar
 
Posts: 106 since Jun 2009
Thanks: 93 given, 66 received

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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


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
Register to download File Type: cs ADXVMA.cs (8.4 KB, 38 views)
Reply With Quote
 
  #16 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,571 given, 3,982 received

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


Reply With Quote
 
  #17 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


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

Reply With Quote
 
  #18 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received

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
Register to download File Type: zip dmafix.zip (11.6 KB, 73 views)
Register to download File Type: zip DoubleMAPaint.zip (4.4 KB, 106 views)
Reply With Quote
 
  #19 (permalink)
Just starting out...
 
Futures Experience: Intermediate
Platform: NT
 
Posts: 20 since Jun 2009
Thanks: 1 given, 2 received

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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received



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

Reply With Quote

Reply



futures io > > > > > DoubleMAPaint with sound arrows...

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other]       Sound files Saroj Platforms and Indicators 19 December 23rd, 2015 04:09 AM
Syncing a sound alert with arrows protrader007 NinjaTrader Programming 9 March 16th, 2011 09:48 PM
Strategy using DoubleMAPaint zeller4 NinjaTrader Programming 10 June 13th, 2010 07:44 PM
sound clips cory Off-Topic 0 April 6th, 2010 11:41 AM


All times are GMT -4. The time now is 07:42 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.15 seconds with 20 queries on phoenix via your IP 54.226.132.197