NexusFi: Find Your Edge


Home Menu

 





ADXVMA_sharky tweek?


Discussion in NinjaTrader

Updated
    1. trending_up 2,446 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

ADXVMA_sharky tweek?

  #1 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Hey all,

I'm very new to coding NS and have been looking at how some of the indicators and strategies are written. I'm using ADXVMA_sharky, and was wondering what line of code to add (and where) to see something like this;

IF red AND falling SHORT (or play sound, or whatever)
IF blue AND rising LONG (or play sound, etc)

So I'm looking for a particular color and movement of the indicator before I do something.

Any suggestions?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Quant vue
Trading Reviews and Vendors
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
 
  #2 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

look in adxvma_sharky_paintbar, then you see what you need ...

for example
 
Code
if (main[0] > main[1])
                { 
                    Rising.Set(main[0]); Rising.Set(1, main[1]);
                    if (ColorBars)
                    { CandleOutlineColor = BarColorOutline; BarColor = BarColorUp;
// here you can define 

 }
                }

Reply With Quote
  #3 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


Thanks wh. I'll have a play with some code. I think I may have to incorporate the dreaded "second derivative" though... ROC of the indicator. There are times when it is flat and red/blue/yellow. Something to do over the weekend...

Started this thread Reply With Quote




Last Updated on July 2, 2009


© 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