Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple question about a simple strategy.

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

    Simple question about a simple strategy.

    I want to use "typical" price instead of the close in the SampleMAcrossover strategy.

    How do I do that simple change?

    Thanks in advance.

    shakira

    #2
    Hi shakira, you need to modify the SMA calls then to use the overload that allows you to input the price type input you need, for example those would be the first two lone of code then...

    Code:
    [SIZE=2][SIZE=2]SMA(Typical, Fast).Plots[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]].Pen.Color = Color.Orange;[/SIZE]
    [SIZE=2]SMA(Typical, Slow).Plots[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]].Pen.Color = Color.Green;[/SIZE][/SIZE]
    Last edited by NinjaTrader_Bertrand; 02-15-2009, 12:53 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    67 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X