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 cmoran13, Yesterday, 01:02 PM
    0 responses
    29 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    21 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    160 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    95 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    148 views
    2 likes
    Last Post CaptainJack  
    Working...
    X