// EnterAtMarket.afl
//
// Entry at the Market
//
// This example uses a simple moving average crossover to
// illustrate entering a long position at the market
//
// The delay between the signal and the entry is
// controlled either by the Settings window or the AFL code
//
// The following code will insure that trades will be made
// on the Close of the same bar that generates the Buy or
// Sell signal.
SetTradeDelays(0,0,0,0);
BuyPrice = C;
SellPrice = C;
// The trading system is a simple moving average crossover
MA1 = MA(C,5);
MA2 = MA(C,25);
// The Buy signal is generated on the bar when MA1 crosses
// from below MA2 to above MA2.
Buy = Cross(MA1,MA2);
Sell = Cross(MA2,MA1);
//Figure 7.1 Enter at Market
MODIFY PERAMITER AS SUITABLE
Subscribe to:
Post Comments (Atom)
My Blog List
Total Pageviews
Search This Blog
Followers
Blog Archive
-
▼
2012
(37)
-
▼
January
(18)
- Fibonacci Numbers
- Bob-Marley-The-Wailers-Get-Up-Stand-Up My favorite...
- Buying Stocks When The Price Goes Down: Big Mistake?
- COG CHART
- AFL COG
- LINKS
- http://www.stockta.com/fibonacci.html ...
- Website Links
- For Rakib Vai
- INTRA BP SP
- FIBO RETS EXTEN COMENTRY NICE AFL
- No title
- SIMPLE MA CROSSOVER AFL SCAN
- Stock Scanning /Shortlisting
- Remember it
- DSE EOD DOWNLOAD
- DSE bull
- Linear Regression Channel with Trend Identifier fo...
-
▼
January
(18)
No comments:
Post a Comment