Need help in coding EA that filter trend ending by XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf )

#1
I found this XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf ) indicator in forum and know it can use for trend ending filter.
In picture you can see Blue histogram under yellow line .This mean trend strength weak and soon will down.
In picture two/you see pink histogram over grey line .this mean downtrend strength weak and will up soon.
So I call its buffer and run EA.
I want to know how can be more accurate signal for this trend end filter by using this indicator.
My EA based on hedge grid.
So direction of trend is important to avoid wipe out account.
Please suggest the better way,

Code: Select all


double xoupblue = iCustom(NULL,0,"XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf )",0,1);//blue line
double xodnpink = iCustom(NULL,0,"XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf )",1,1);//pink 
double xoupyellow = iCustom(NULL,0,"XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf )",2,1);//YELLOW LINE < BLUE SURE UP
double xodngrey = iCustom(NULL,0,"XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf )",3,1);//grey line > pinl line down

if(xoupblue < xoupyellow )return(sell);
   
   if(xodngrey < xodnpink )return(buy);
   
   //here its buffers
    SetIndexBuffer(0,kr1); SetIndexStyle(0,DRAW_HISTOGRAM);//BLUE LINE
      SetIndexBuffer(1,no1); SetIndexStyle(1,DRAW_HISTOGRAM);//PINK LINE
      SetIndexBuffer(2,kr2);//YELLOW LINE < BLUE SURE UP
      SetIndexBuffer(3,no2);//GREY LINE > PINk SURE DOWN
      SetIndexBuffer(4,trend1);
      SetIndexBuffer(5,trend2);
      SetIndexBuffer(6,trend3);
      SetIndexBuffer(7,count);
   [code]
Screenshot_29.png
XO - choosable symbol ( 2 in 1 + arrows + alerts +mtf ) (1).mq4
(20.62 KiB) Downloaded 192 times
Screenshot_30.png
Screenshot_33.png
Screenshot_32.png
Screenshot_31.png


Attachments 6
  1. Similar Topics

    1. Hi. Can you please add custom levels , custom alerts and arrows.

      0 Replies 1062 Views

      by Jeevan.b, Fri Mar 05, 2021 5:15 pm in Coding Help

      0 Replies
      1062 Views
    2. i-trend Indicator- alerts request

      0 Replies 478 Views

      by scdihan, Fri Jul 09, 2021 6:19 pm in New Members & Common Forex Q&A's

      0 Replies
      478 Views
    3. How can add News Filter in EA

      0 Replies 495 Views

      by kyawswarlin, Sat Jun 05, 2021 1:55 pm in Coding Help

      0 Replies
      495 Views

Return to “Coding Help”

Users viewing this forum: CommonCrawl [Bot], TECHHDATE07 and 1 guest