• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to remove color variable from indicator for strategy wizard use

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

    How to remove color variable from indicator for strategy wizard use

    I am using an indicator that displays vwap along with 2 and 3 std deviation VWAP lines and would like to create a strategy using the strategy wizard. However I receive an error " System drawing color is a type but is being used like a variable" . Is there a simple way to remove the color variable? I have tried with no success so far The code for the indicator is attached. Any help would be greatly appreciated..

    If anyone would be willing to modify the code to accomplish the above, it would be greatly appreciated. Thanks
    Attached Files
    Last edited by NAD1225; 06-05-2017, 05:35 PM. Reason: Assistance needed

    #2
    Hello NAD1225,

    The Strategy Wizard in NinjaTrader 7 was not designed to handle color inputs.

    Because of this, the Color inputs would need to be removed from the indicator for this to work with the Strategy Wizard. (I would recommend making a copy of the indicator for use specifically with strategies).

    If the script is open source, to edit this click Tools -> Edit NinjaScript -> Indicator...

    To copy a script:

    https://www.youtube.com/watch?v=K8v_...utu.be&t=5m33s

    The color inputs will appear as they do in this post.

    http://ninjatrader.com/support/forum...ead.php?t=4977
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by crazyhorse2393, Today, 07:31 PM
    0 responses
    5 views
    0 likes
    Last Post crazyhorse2393  
    Started by Jschmelz, Today, 01:13 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Newtrader101, Today, 12:37 PM
    2 responses
    13 views
    0 likes
    Last Post Newtrader101  
    Started by Robert87, Yesterday, 11:07 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by U0000999, Today, 12:20 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_EricB  
    Working...
    X