Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Differerence between to Swings

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

  • NinjaTrader_PatrickH
    replied
    Hello fiddy,

    Thank you for your post.

    Add the value to a double and then call the double in the Print() method:
    Code:
    double diff = Swing(5).SwingHigh[0]-Swing(5).SwingLow[0];
    Print("The diff of swing bars is " + diff.ToString());

    Leave a comment:


  • fiddy
    started a topic Differerence between to Swings

    Differerence between to Swings

    I am trying to use the difference btw swings in some code

    Swing(5).SwingHigh[0]-Swing(5).SwingLow[0]

    Print("The diff of swing bars is " + Swing(5).SwingHigh[0]-Swing(5).SwingLow[0]);

    I tried to print the result of the above formula to see the result but got the following msg:


    Operator '-' cannot be applied to operands of type 'string' and 'double'

Latest Posts

Collapse

Topics Statistics Last Post
Started by vivek.n, Today, 03:19 AM
0 responses
4 views
0 likes
Last Post vivek.n
by vivek.n
 
Started by ashwagandhaplus, Today, 12:04 AM
0 responses
6 views
0 likes
Last Post ashwagandhaplus  
Started by ashwagandhaplus, Today, 12:02 AM
0 responses
9 views
0 likes
Last Post ashwagandhaplus  
Started by truvalastfrnce, Today, 12:01 AM
0 responses
5 views
0 likes
Last Post truvalastfrnce  
Started by truvalastfrnce, Today, 12:00 AM
0 responses
4 views
0 likes
Last Post truvalastfrnce  
Working...
X