Simple Coding Help - No Promise.

checkmate7

Well-Known Member
Anybody having RSI/OBV divergence afl.. need for screening stocks EOD... Thanks
 
Please help me to code: i want to sinal buy in week, but it wrong,

TimeFrameSet(inWeekly);
M = MACD( 5, 8 );
S = Signal( 5, 8, 5 );
TimeFrameRestore();
MW = TimeFrameExpand(M, inWeekly);
SW = TimeFrameExpand(S, inWeekly);
buy = cross (MW,SW);
TimeFrameSet(inWeekly);
MAW=MA(Close,5);
TimeFrameRestore();

Buy1 = ( C> MAW) ;
AddColumn Buy, "MACD week ",1);
AddColumn (Buy2, "MA5 week ",1);

Filter = Buy = C>0;
 
Hi all coders, and memebers, here i am posting a Simple TMA, i just need a MTF ( multi time frame venison ) version as i checked this with MT4, very excellent for long term and reversal with a high accuracy , i request all coders please make it into Multi time frame version ...
 
you have to do two things
Change EMA to MA
change time to your likely

this EMA 20 on 5mins 15mins 60mins

Code:
_SECTION_BEGIN("EMA 5 MIN");

TimeFrameSet(in5Minute);
m5= EMA(Close,20) ;
Plot(TimeFrameExpand(m5, in5Minute), "", ParamColor( "5 Min Color", colorBlue ), ParamStyle("Style", styleDashed));
TimeFrameRestore();
_SECTION_END();

_SECTION_BEGIN("EMA 15 MIN");
TimeFrameSet(in15Minute);
m15= EMA(Close,20) ;
Plot(TimeFrameExpand(m15, in15Minute), "", ParamColor( "15 Min Color", colorGrey50 ), ParamStyle("Style", styleDashed));
TimeFrameRestore();
_SECTION_END();

_SECTION_BEGIN("EMA 60 MIN");
TimeFrameSet(60*in1Minute);
m60= EMA(Close,20) ;
Plot(TimeFrameExpand(m60, 60*in1Minute), "", ParamColor( "60 Min Color", colorLightGrey ), ParamStyle("Style", styleDashed));
TimeFrameRestore();
_SECTION_END();
hello,
i am sorry to ask for some favoure again.
this sma's dont auto scale. what i mean to say is if one of 3sma is at 100 and price is at 150 then it shows that sma and because of that chart's candel dont show proper. can we make this sma auto scale?
 

Similar threads