//+------------------------------------------------------------------+ //| Paral.mq4 | //+------------------------------------------------------------------+ #property copyright "© Maloma" #property indicator_chart_window //---- input parameters extern int LPeriod=13; extern int nBars=300; int CBars=0; //+------------------------------------------------------------------+ int start() { if (CBars!=Bars) for (int i=0;i<=nBars;i++) { string CN=CurTime(); if (ObjectCreate(CN,OBJ_TREND,0,iTime(Symbol(),0,LPeriod),Close[LPeriod],iTime(Symbol(),0,1),Close[1],0,0) !=0) Comment(GetLastError()); ObjectSet(CN, " My_prof_id",0); } CBars=Bars; return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Series array that contains close prices for each bar
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
Other Features: