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,195 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!

  #11 (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

Saroj you are the Man!! Indicator looks good...I have attached my template and a copy of my chart that I am working on with your stoch alert on it.

I couldn't get the alerts to work yet, but I haven't tried much yet.

Here is what my ZN trading plan is:

Thanks to Jeff, sharky, Big Mike, Saroj, wh...for ideas that went into this!

I have three charts, 11 range, 4 range, 1597 volume.
I use my 4 range chart for my entries, 11 range for trend and 1597 fine tuning all three have the same indicators

What I am looking for long entry:
Stochastics above 30 and rising
EMA 50 & 20 trending up
Consolidation
Momentum above 0, Aggressive entry below 0 line but heading up
LinRegSlope above 0, Aggressive entry below 0 line but heading up
Use MML for SR and exit points

Entry for shorts would just be the opposite.


Money management:
2 contracts. First profit target is set @ 5 ticks and the second is runner.
Once first target is hit my stop loss moves to BE. Original stop loss is 5 ticks.
Still doing testing for average maximum profit and use this instead of MML

This is a work in progress but I plan on starting my journal and charts posting in the next week or so.

Attached Thumbnails
Click image for larger version

Name:	ES 09-09  8_28_2009 (4 Range)c.jpg
Views:	325
Size:	164.2 KB
ID:	1453  
Attached Files
Elite Membership required to download: Test_stoch_Saroj.xml
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
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
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #12 (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

or "woman" in this case... good news Rod... let us know how it goes... thanks for posting your template.. I'll have a look later.

Reply With Quote
  #13 (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



Saroj View Post
or "woman" in this case... good news Rod... let us know how it goes... thanks for posting your template.. I'll have a look later.


Hey Rod,

How many guys have flower avatars????



RJay

Reply With Quote
  #14 (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

OOPS!!!

So Sorry!!!

Started this thread Reply With Quote
  #15 (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


RJay View Post
Hey Rod,

How many guys have flower avatars????



RJay

Now! Now! We shouldn't be chauvinistic!

Started this thread Reply With Quote
  #16 (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

RJay... too funny! "saroj" = lotus in sanskrit... thus the lotus... the moon is just cause I like that image

Reply With Quote
  #17 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

i have it to say once again + not only to think it by myself :
great teams + great works here -- even if its simple stuff
+ some fun together also !
just nice to see ....

:bmt-rocks:

max-td
Reply With Quote
  #18 (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


max-td View Post
i have it to say once again + not only to think it by myself :
great teams + great works here -- even if its simple stuff
+ some fun together also !
just nice to see ....

:bmt-rocks:




Couldn't agree more!!!

Started this thread Reply With Quote
  #19 (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

Saroj,

Indicator works good and I did get the audible alerts to work. The problem is they alert when the K% is rising from below the OBValue line. I need it to give me an alert when it is falling out of the OBValue section, falling below 70.

And the same for when the K% is in the OSValue section I want an alert when it is rising out of OSValue section, above 30.

Where or how can I change this code?

Thanks

rod

Started this thread Reply With Quote
  #20 (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


Rod, on a quick glance it looks like you need to change "CrossAbove" to "CrossBelow" on line 112 and pull lines 112 to 115 out from the nested "if" statement (i.e. copy and paste just above line 110; similarly for lines 123 - 126... then clean up the Alerts as you like. To be honest these were commented out before and I just added the "sound on/off" toggle... I didn't really look at the logic... and, unfortunately I can't really focus on it right now either.. too late... give that a try...

To avoid a lot of aggravation for yourself.. copy and paste one set of them and just comment out the existing code... then press <F5> to compile... correct any errors.. once it compiles clean, do same on the other one.. that avoids long lists of errors.. just taking a nibble of code changing at a time.

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