Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how can i save a price level in to a variable

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

    how can i save a price level in to a variable

    Hello

    i need to save the first 2 lowers lows in a varable from the indicator swing

    once the indicator do a lower low it prints a dot

    && (Swing1.SwingLow[4] < Swing1.SwingLow[5] )
    {
    Draw.Dot(this, @"diferentsTemps Dot_1", false, 0, FirstMin, Brushes.CornflowerBlue);
    Draw.Dot(this, @"diferentsTemps Dot_2", true, 0, SecondMin, Brushes.GreenYellow);

    i want to save the price level from the firs 2 dots in a variable

    but i don't know how can i do it


    thanks for your help


    Attached Files

    #2
    Hello ernest93,

    Thank you for your post.

    You could check the SwingLow value of the Swing Strength number of bars ago on each bar and save the current value of the FirstMin to SecondMin, then update FirstMin with the SwingLow value from the swing strength number of bars ago. I've created a simple example indicator that illustrates.

    Please let us know if we may be of further assistance to you.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X