NexusFi: Find Your Edge


Home Menu

 





Stochastics coding help needed!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Saroj with 10 posts (1 thanks)
    2. looks_two RodS with 8 posts (0 thanks)
    3. looks_3 zt379 with 5 posts (0 thanks)
    4. looks_4 roonius with 4 posts (7 thanks)
      Best Posters
    1. looks_one Alan with 2 thanks per post
    2. looks_two roonius with 1.8 thanks per post
    3. looks_3 wh with 1 thanks per post
    4. looks_4 Saroj with 0.1 thanks per post
    1. trending_up 14,188 views
    2. thumb_up 12 thanks given
    3. group 4 followers
    1. forum 33 posts
    2. attach_file 10 attachments




 
Search this Thread

Stochastics coding help needed!

  #21 (permalink)
 
RodS's Avatar
 RodS 
Indy
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: 6E,TF,YM,NQ
Posts: 89 since Jun 2009
Thanks Given: 435
Thanks Received: 66

That did it!! Thank you very much Saroj!

Have a Great Weekend!!

Rod

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
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
  #22 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,048 since Sep 2009
Thanks Given: 1,572
Thanks Received: 1,936

Greetings.
As a first post I'd thought I'd ask for some help.
With no scripting experience I'm hoping someone can help.

Is it possible to have the actual stochastic line (not the background) coloured if above or below a threshold ?

ie: if D Stochastic line is above 80 then colour the D line green.
if D Stochastic line is below 20 then colour the D line red.
if D Stochastic line is between 80 and 20 then colour the D line yellow.

I have tried, but I have no idea what I'm doing.

Any help appreciated.
thx

Reply With Quote
  #23 (permalink)
 
Saroj's Avatar
 Saroj 
Arcata, CA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
Posts: 485 since Jun 2009
Thanks Given: 232
Thanks Received: 415



zt379 View Post
Greetings.
As a first post I'd thought I'd ask for some help.
With no scripting experience I'm hoping someone can help.

Is it possible to have the actual stochastic line (not the background) coloured if above or below a threshold ?

ie: if D Stochastic line is above 80 then colour the D line green.
if D Stochastic line is below 20 then colour the D line red.
if D Stochastic line is between 80 and 20 then colour the D line yellow.

I have tried, but I have no idea what I'm doing.

Any help appreciated.
thx

ZT, did you ever get your stochastic coloring indicator? I have one for rising/falling that probably could be adapted fairly easily.

Reply With Quote
  #24 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,048 since Sep 2009
Thanks Given: 1,572
Thanks Received: 1,936


Saroj View Post
ZT, did you ever get your stochastic coloring indicator? I have one for rising/falling that probably could be adapted fairly easily.

Saroj.
Thx very much for asking.
No I have not made any progress.
If yours can be adapted, that would be great ?

Many thx.

Reply With Quote
  #25 (permalink)
 
Saroj's Avatar
 Saroj 
Arcata, CA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
Posts: 485 since Jun 2009
Thanks Given: 232
Thanks Received: 415


zt379 View Post
Saroj.
Thx very much for asking.
No I have not made any progress.
If yours can be adapted, that would be great ?

Many thx.

I'll give it a stab... give me a few days... and please let me know if you come up with one in the meantime.

Reply With Quote
  #26 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295


zt379 View Post
Saroj.
Thx very much for asking.
No I have not made any progress.
If yours can be adapted, that would be great ?

Many thx.

Try attached.

Attached Files
Elite Membership required to download: StochasticsDColors.cs
Reply With Quote
Thanked by:
  #27 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,048 since Sep 2009
Thanks Given: 1,572
Thanks Received: 1,936


roonius View Post
Try attached.

thank you Saroj and roonius.

I'm used to downloading and installing from a zip.file
I don't know how to install this cs.file.

Could you help with this ?

Thank you

Reply With Quote
  #28 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


zt379 View Post
thank you Saroj and roonius.

I'm used to downloading and installing from a zip.file
I don't know how to install this cs.file.

Could you help with this ?

Thank you

zt379,

Look here!!!



RJay

Reply With Quote
  #29 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,048 since Sep 2009
Thanks Given: 1,572
Thanks Received: 1,936


RJay View Post
zt379,

Look here!!!



RJay

Thank you RJay. Got it working.

How can I alter the code to have the colour changes for the K line instead of the D line ?
I've looked at the code but I have no experience with this.

Many thanks for the help.

Reply With Quote
  #30 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295



zt379 View Post
Thank you RJay. Got it working.

How can I alter the code to have the colour changes for the K line instead of the D line ?
I've looked at the code but I have no experience with this.

Many thanks for the help.

Last 2 lines replace D[0] with K[0]

Reply With Quote




Last Updated on October 24, 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