Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Arrow if Bar Over Certain Pip Size

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

    Draw Arrow if Bar Over Certain Pip Size

    Hi

    I'm struggling to get even the simplest scripts to run here. I have some 5 minute data from IB for the currency pair GBP/USD. The pair is loaded into the strategy analyser and I can right click the pair to run a back test, pull up a chart, etc. I've got a simple script as follows to print some text if a bar high is greater than the low (text on every bar right?) but still nothing prints on the chart after the test is run.

    Script:

    if (High[0] > Low[0])
    {
    DrawText(
    "My text" + CurrentBar, "here", 0, 0, Color.Red);
    }


    So can someone help me get the basics working for me here and get the text or an arrow to print on backtest, and secondly, how would I code this strategy so that I can identify bars over a certain pip size?

    From then on I should be able to figure the rest out.

    Thanks

    #2
    Draw Arrow if Bar Over Certain Pip Size

    Use the Strategy wizard
    1 Create new strategy
    2) High > Low (use offset here to show large pip size)
    3) Go to bottom pane "Do the following"
    4) Click "add"
    5) Click "drawing"
    6) Click "up arrow"
    7) Click "Y" and select where you want arrow to appear (Example low of bar)
    8) Click next until done

    The strategy wizard is easier to use than indicator wizard. Trt it I think you will see it is easy to make fairly complex strategies

    I hope this helps

    Comment


      #3
      Originally posted by ninjablanks View Post
      Use the Strategy wizard
      1 Create new strategy
      2) High > Low (use offset here to show large pip size)
      3) Go to bottom pane "Do the following"
      4) Click "add"
      5) Click "drawing"
      6) Click "up arrow"
      7) Click "Y" and select where you want arrow to appear (Example low of bar)
      8) Click next until done

      The strategy wizard is easier to use than indicator wizard. Trt it I think you will see it is easy to make fairly complex strategies

      I hope this helps
      And its working

      Thanks very much, appreciate your time.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X