Simple Coding Help - No Promise.

Did you read the Amibroker help files ???

Happy :)
so i should use this code?
TimeFrameSet( in5Minute ); // switch to 5 minute frame

/* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA of 5min bars */

ma5_13 = MA( C, 13 );

TimeFrameRestore(); // restore time frame to original

TimeFrameSet( inHourly ); // switch now to hourly

mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data

TimeFrameRestore(); // restore time frame to original

Plot( Close, "Price", colorWhite, styleCandle );

// plot expanded average

Plot( TimeFrameExpand( ma5_13, in5Minute), "13 bar moving average from 5 min bars", colorRed );
Plot( TimeFrameExpand( mah_9, inHourly), "9 bar moving average from hourly bars", colorRed );
 
No as i don't understand coding at all so i don't even understand what you said about some functions ya but will look into it now but seriously all goes above my head

Sent from my MI 4W using Tapatalk
Code:
TimeFrameSet(inDaily);
	DMA = MA(C,20);
TimeFrameRestore();

TimeFrameSet(in1Minute*240);
	MA24 = MA(C,20);
TimeFrameRestore();

eDMA  = TimeFrameExpand(DMA,inDaily);
MA240 = TimeFrameExpand(MA24,in1Minute*240);
MA15 = MA(C,20);

Plot(MA15,"15 MIN",colorRed,styleNoRescale|styleDashed);
Plot(MA240,"240 MIN",colorBlue,styleNoRescale|styleLine);
Plot(eDMA,"DAILY",colorGreen,styleNoRescale|styleThick);
Happy :)
 
Code:
TimeFrameSet(inDaily);
	DMA = MA(C,20);
TimeFrameRestore();

TimeFrameSet(in1Minute*240);
	MA24 = MA(C,20);
TimeFrameRestore();

eDMA  = TimeFrameExpand(DMA,inDaily);
MA240 = TimeFrameExpand(MA24,in1Minute*240);
MA15 = MA(C,20);

Plot(MA15,"15 MIN",colorRed,styleNoRescale|styleDashed);
Plot(MA240,"240 MIN",colorBlue,styleNoRescale|styleLine);
Plot(eDMA,"DAILY",colorGreen,styleNoRescale|styleThick);
Happy :)
thanks a ton sir.
but I can't change parameters in this?
 
Last edited:
Hello


As things are getting really busy for me
I won't be able to answer any more queries or
provide coding help on this thread.



Thanks


Happy :)
 

vijkris

Learner and Follower
Hello


As things are getting really busy for me
I won't be able to answer any more queries or
provide coding help on this thread.



Thanks


Happy :)
Pls don't close this thread.. If possible visit once in a quarter atleast..:thumb:

In the meantime there are few others who can provide some solution to people. :)
 
Pls don't close this thread.. If possible visit once in a quarter atleast..:thumb:

In the meantime there are few others who can provide some solution to people. :)
No plans to close

Just gave a heads up regarding my unavailability

This was my thread when I started it, but not anymore :D

There are many like you who help out where every possible :thumb:


Happy :)
 
Code:
SU=Study("SU",GetChartID());
RE=Study("RE",GetChartID());

Short=Cross(SU,Close);
Cover=Cross(EMA(Close,20) ,EMA(Close,50));

Buy=Cross(Close,RE);
Sell=Cross(EMA(Close,50),EMA(Close,20));


PlotShapes(Buy*3, colorGreen, 0, L);
PlotShapes(Short*4, colorRed, 0, H);


Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);

Plot( EMA( Close,20 ),"EMA20",colorRed,styleLine);
Plot( EMA( Close,50 ),"EMA50",colorBlue,styleLine);

PlotShapes( IIf( Buy, shapeHollowSmallUpTriangle, shapeNone ), colorGreen, 0, BuyPrice );
PlotShapes( IIf( Sell, shapeHollowSmallDownTriangle, shapeNone ), colorRed, 0, SellPrice );

PlotShapes( IIf( Cover, shapeSmallUpTriangle, shapeNone ), colorGreen, 0, CoverPrice );
PlotShapes( IIf( Short, shapeSmallDownTriangle, shapeNone ), colorRed, 0, ShortPrice );
Check if this is what you are looking for . . . .


Happy :)
Thanks happy for your responce.

what i am looking is if i draw multiple RE study as in the image, will i get buy arrows in all cases .This will help me backtest a rule based discretionary system .

 
Hello All
was Developing my Trading System now i am stuck at one thing
If my criteria of buy is EMA cross can my sell be another criteria like volume

Similarly if i make a short position by EMA Cross can i cover my position on some other criteria like stochastic.....

eg....
Buy = MA( Open+Close , 10 ) < Close
AND MA( Close , 10 ) > EMA( Close , 20 )
AND MACD( 12, 26 ) > MA( Close , 9 )
AND RSI( 14 ) > 40;

Sell = Volume(HHVBars(Close, < BarsSince(Close,50%) );

in volume based selling it is showing syntax error

please advise
 

vijkris

Learner and Follower
Hello All
was Developing my Trading System now i am stuck at one thing
If my criteria of buy is EMA cross can my sell be another criteria like volume

Similarly if i make a short position by EMA Cross can i cover my position on some other criteria like stochastic.....

eg....
Buy = MA( Open+Close , 10 ) < Close
AND MA( Close , 10 ) > EMA( Close , 20 )
AND MACD( 12, 26 ) > MA( Close , 9 )
AND RSI( 14 ) > 40;

Sell = Volume(HHVBars(Close, < BarsSince(Close,50%) );

in volume based selling it is showing syntax error

please advise
volume is an array.. U cannot put ( after volume..
If u want to calculate something using volume.. then instead of "close" in the line, use volume..
 

Similar threads