NexusFi: Find Your Edge


Home Menu

 





REQ: Double Stochastic code


Discussion in Sierra Chart

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




 
Search this Thread

REQ: Double Stochastic code

  #1 (permalink)
 franmadrid 
spain
 
Experience: Intermediate
Platform: TradeStation
Posts: 18 since Apr 2010
Thanks Given: 24
Thanks Received: 5

Hi guys, I am looking for a double stochastic code. Exactly I am working in Ninja and Multichart and I want to move my double stochastic to Sierra. But in Sierra the D.Stochastic is very diferent , meaby the calculation is diferent. Anyone can help to me get DS from Ninja or MC to Sierra. ??

I leave you a snapshot to compare the 3 software. (the snapshot have 3diferent period 5,18 and 70 over ema75 in MC and ninja . In Sierra I posted only the 18 (blueone))

The MC (easy language) calculation is this:

[LegacyColorValue = true];

{_DStoc: Double Stochastic}

Inputs:
DStLen(NumericSimple)
;

Vars:
Num(0),
Denom(0),
Ratio(0),
PctK(0),
DNum(0),
DDenom(0),
DRatio(0),
DPctK(0)
;

{Stoc}
Num=C-_Lst(L,DStLen);
Denom=_Hst(H,DStLen)-_Lst(L,DStLen);
Ratio=IFF(Denom>0,(Num/Denom)*100,Ratio[1]);
PctK=IFF(CurrentBar=1,Ratio,PctK[1]+(.5*(Ratio-PctK[1])));

{DStoc}
DNum=PctK-_Lst(PctK,DStLen);
DDenom=_Hst(PctK,DStLen)-_Lst(PctK,DStLen);
DRatio=IFF(DDenom>0,(DNum/DDenom)*100,DRatio[1]);
DPctK=IFF(CurrentBar=1,DRatio,DPctK[1]+(.5*(DRatio-DPctK[1])));

_DStoc=DPctK;

Attached Thumbnails
Click image for larger version

Name:	sierra_double_stochastic_vs_ninja_MC.jpg
Views:	218
Size:	1.38 MB
ID:	254448  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
  #3 (permalink)
 
LDog's Avatar
 LDog 
Lafayette, TN/USA
 
Experience: Beginner
Platform: SC,TastyWorks,ToS
Broker: TDA, OANDA,AMP/CQG/SC
Trading: Looking for it/them
Posts: 210 since Sep 2015
Thanks Given: 11,919
Thanks Received: 344


Just my opinion, but you'll probably be fine with 3 of the 'stock' studies - you'll just have tweak your Moving Average Length in each study, a bit:



HTH

Reply With Quote
Thanked by:
  #4 (permalink)
 franmadrid 
spain
 
Experience: Intermediate
Platform: TradeStation
Posts: 18 since Apr 2010
Thanks Given: 24
Thanks Received: 5


LDog View Post
Just my opinion, but you'll probably be fine with 3 of the 'stock' studies - you'll just have tweak your Moving Average Length in each study, a bit:



HTH

The look is really nice!!! Let me know please your setup, is very close to the mine one in MC and Ninja. For 18 period you use EMA3, but for the rest?

This is very helpful for me.

I really appreciate your time

Started this thread Reply With Quote
  #5 (permalink)
 
LDog's Avatar
 LDog 
Lafayette, TN/USA
 
Experience: Beginner
Platform: SC,TastyWorks,ToS
Broker: TDA, OANDA,AMP/CQG/SC
Trading: Looking for it/them
Posts: 210 since Sep 2015
Thanks Given: 11,919
Thanks Received: 344

Glad it was useful.

I used the EMA3 for the 5 and 18 Length DS's and EMA2 for the 70 Length.

I was just trying to match what your other platforms showed so you may want to try some different ones and see how they look.

Reply With Quote
Thanked by:




Last Updated on September 3, 2018


© 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