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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X