Attachments forums

List of attachments posted on this forum.


All files on forums: 159890

Coding help for creating signal line for Up_and_Down indicator

Lionheart, Mon Sep 05, 2022 7:25 pm

Have a look first at the attached image. I want to create on the same window a signal line. Specifically the blue line is the signal line which i attached as MA20 , simple , previous indicator.

Code: Select all

It works for me  double UpandDown_slow =  iCustom(_Symbol,_Period,"Up_and_Down",period+18,Arrow,ArrowSize,SIGNAL_BAR,clArrowBuy,clArrowSell,0,4);
I used the forth candle but is possible to work with the 3rd too.

I use as simple conditions :

if(  UpandDown_slow>0.8
     


                         && DontTrade==false && OrdersTotal()<1 ) { //test3_fast<test3 && SMA1>UBB && Mom30<100
                         // Create a sell signal
                         signal = "sell"; 
                         double SELL_TP = Bid-TP_IN_PIPS*_Point;
                         double SELL_SL = Ask+TP_IN_PIPS*_Point;
                         
                         }
All files in topic