View previous topic :: View next topic |
Author |
Request for a moving avg crossover indicator |
infonaga White Belt
Joined: 13 Apr 2008 Posts: 1
|
Post: #1 Posted: Tue Dec 09, 2008 10:31 am Post subject: Request for a moving avg crossover indicator |
|
|
Dear Swing Trader Sir,
I request you to make a small custom indicator for me - this is basically a moving average cross over with variable MA period and a variable bias : kindly do needful and inform me......... this is written in ami language - kindly ask me, if any clarification is required
=============================
small = 10;
big = 50;
sma = MA(close,small);
bma = MA(close,big);
bias = 10;
Buy = (H > bma + bias) & sma > bma ;
Sell = (L < bma - bias) & sma < bma ;
Buy = ExRem( Buy, Sell);
Sell = ExRem( Sell,Buy);
Filter = Buy OR Sell ;
//Plot buy and sell signals
======================================= |
|
Back to top |
|
|
| |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|