Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Mesa Sine Wave

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mesa Sine Wave

    Hi All

    I found the indicator "Mesa Sine Wave" in Metastock very useful for trading, so i asked Equis Support if i can buy the indicator from them. To my surprise, they sent me the formula with no further mention of charges. An indicator by the name of "EhlersSineWave" was put up my NT staff in one of the threads but the formula seems to be different as i found in the .xml file.

    Here is the formula i received from Equis Support:

    rp:=(Cos(0)*C)+(Cos(360/2)*Ref(C,-1));
    ip:=(Sin(0)*C)+(Sin(360/2)*Ref(C,-1));

    1p:=If(Abs(rp)>.001,Atan(ip,rp),90*Neg(ip));
    2p:=If(rp<0, 1p+180,1p);
    3p:=2p+90;
    4p:=If(3p<0, 3p+360, If(3p>360,3p-360,3p));

    2p


    ************************************************** *

    I'm still trying to make a complete sense of it and coding it into NT is something i'm terribly weak at.
    Any help with respect to coding would be appreciated.

    Thank You.

    #2
    Welcome to the forums and thanks for sharing this different calculation approach, I know there's been several versions and improvements as well published by the original author as well as he continued to refine his methods. You can check into our forums here as well on this topic, where custom works on this study were shared / discussed - http://www.ninjatrader.com/support/f...archid=1431332

    I'm also leaving this open for any community member to chime in with their thoughts and potentially another variant.

    If you would seek to get this professionally coded for you, a NinjaScript consultant could also assist directly - http://www.ninjatrader.com/partners#...pt-Consultants
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, 04-17-2024, 06:40 PM
    6 responses
    48 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    9 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    19 views
    0 likes
    Last Post traderqz  
    Working...
    X