Bar Size Code
Results 1 to 2 of 2

Thread: Bar Size Code

  1. #1
    Hello, I would appreciate it if somebody could help me out with a very small bit of coding. I've an alert indior I just wish to go off if the previous pub is higher then 20 pips. Here is the part of code I am inserting to tell the indior to CONTINUE or STOP.

    If (iOpen(NULL, p, 2) - iClose(NULL, p, 2) gt; 0.002) continue;

    However, I don't think this is the right code to input because the indior still goes away. This is more of the code that I am inserting the above statement into:


    if (Close[0] == iHigh(NULL, p, 0))
    if (iClose(NULL, p, I 1) gt; iOpen(NULL, p, I 1)) continue;
    if (Close[0] lt;= z) continue;
    if (Old gt; z) continue;
    if (iOpen(NULL, p, 2) - iClose(NULL, p, 2) gt; 0.002) continue;
    DisplayAlert(Look for a Symbol() SHORT on PeriodNice(p) (wick));
    t = iTime(NULL, p, 0);


    Any help would be much appreciated!


  2. #2
    hey nebuman.... Sometimes it's ideal to just choke the alert down by incorporating the dimensions requirement.... May be worth it to have an override option, just in case your not constantly interested in the dimensions component.... Like ! Filter utilized below....

    I have added an example of the code into the psar alert included...h

    Inserted Code (! Filter || (High#91;I 1#93; - Low#91;I 1#93;-RRB- gt; Range * Stage)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.