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

Floor Pivot Point Question!!

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

    Floor Pivot Point Question!!

    Can anyone assist me? I've downloaded the floor pivot indicator and would like to modify it slightly. I would like to draw another line between the midpoints and support and midpoints and resistance. I've tried to modify the code using the following:

    if(trailing)
    {
    FiftyTS14.Set((FiftyR54+r4)*
    .50);
    FiftyTS13.Set((FiftyR54+r3)*
    .50);
    FiftyTS12.Set((FiftyR43+r3)*
    .50);
    FiftyTS11.Set((FiftyR43+r2)*
    .50);
    FiftyTS10.Set((FiftyR32+r2)*
    .50);
    FiftyTS9.Set((FiftyR32+r1)*
    .50);
    FiftyTS8.Set((FiftyR21+r1)*
    .50);
    FiftyTS7.Set((FiftyR21+pp)*
    .50);
    FiftyTS6.Set((FiftyR1PP+pp)*
    .50);
    FiftyTS5.Set((FiftyR1PP+s1)*
    .50);
    FiftyTS4.Set((FiftyPPS1+s1)*
    .50);
    FiftyTS3.Set((FiftyPPS1+s2)*
    .50);
    FiftyTS2.Set((FiftyS12+s2)*
    .50);
    FiftyTS1.Set((FiftyS12+s3)*
    .50);
    FiftyTS1B.Set((FiftyS23+s3)*
    .50);
    FiftyTS1A.Set((fiftyS23+s4)*
    .50);
    }

    but I keep getting error codes indicating "+" operator not allowed in 'bool'. I've modified it, but it still does not work! Any suggestions would be greatly appreciated!!!!!!
    Last edited by dscurry; 12-01-2009, 05:30 PM. Reason: reclassified

    #2
    Please ensure you declare needed variables for holding values as doubles here and then you should be able to add / subtract as needed.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 11:02 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by geotrades1, Today, 10:02 AM
    4 responses
    11 views
    0 likes
    Last Post geotrades1  
    Started by rajendrasubedi2023, Today, 09:50 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by lorem, Today, 09:18 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by geddyisodin, Today, 05:20 AM
    4 responses
    30 views
    0 likes
    Last Post geddyisodin  
    Working...
    X