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 Brevo, Today, 01:45 AM
    0 responses
    3 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    239 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X