There are no items in your cart
Add More
Add More
Item Details | Price |
---|
This AFL generates entry and exit based on Simple moving average Crossover.
This AFL works for both Intraday and Positional trades.
Buy Entry : When MA-1 crosses MA-2 towards upside.
Short Entry : When MA-1 crosses MA-2 towards downside.
Sell : Occurs due to Target or SL or at Square off time (Only for Intraday mode)
Cover : Occurs due to Target or SL or at Square off time (Only for Intraday mode)
Here are the Parameters of the AFL and their function in the strategy :
1. MA-1 : Input the value of First Simple moving average here.
2. MA-2 : Input the value of Second Simple Moving average here.
3. Point or Percentage : Choose whether you want Target in Points or Percentage.
4. Target : You can Set the Target price here. For Long position Target will be Buy price + Target and for Short position the Target will be Short price – Target.
5. SL : You can set the SL price here. For Long position, SL will be Buy Price – SL and for Short position the SL will be Short price + SL
6. Intraday mode : If selected as ON, the AFL will work as Intraday strategy else it will work as positional strategy.
7. Trade Start time : Here you have to mention the time from which you want to accept the signals and this feature works only when Intraday mode is on.
8. No Entry After : Here you have to mention the time from which you want to stop accepting the signals and this feature works only when Intraday mode is on.
9. Square off Time : Mention the Time at which you want to square off your intraday positions if the Target or SL is not achieved. and this feature works only when Intraday mode is on.
Example : If Trade Start time is 0945 and No entry after time is 1445 and Square off time is 1510, the Code will take trades only after 9:45 am , any crossover before 9:45 am will be ignored and it will accept fresh signals only till 2:45 pm and if there is any open position, it will be squared off at 3:10 pm.
10. Plot Line : If selected ON, moving average will be plotted on display (Note : Even if plotting is OFF, it will not impact the Entry or Exit)
11. Message Box : This Box shows the Current position , Target and SL price on chart and also shows Net P/L if its kept on
12. Backtest settings > Initial Equity in Thousand : Here you can set how much capital to be used while generating Backtest report.
13. Account Margin : You can Set Leverage for trading here. The rule to calculate leverage using account margin is 1 divided by decimal.
Ex : If Account margin is 0.1, then 1/0.1 = 10 and it represents 10X leverage If account margin is 0.2, then 1/0.2 = 5 and it represents 5X leverage.
14. Max Open position : Here you can define how many scripts can have concurrent open position.
Ex : If the Max Open position is set to 10, then the initial equity will be divided into 10 parts and allocated to 10 different scripts until they are having a open position.
15. Lot size : For Equity trading its 1, and for other FN0 and MCX segment you can add corresponding lot size as per script and do the backtesting of your strategy as per lot size.
16. Algofox Auto > Instrument : Select in which segment you want to automate the trades.
17. Product type : Choose whether to place MIS/NRML/CNC trade here.
18. Point or Percentage : Choose whether the Limit buffer you wish to set should be in points or percentage.
19. Limit Order Buffer : Add the buffer in points/percentage that you wish to add to existing Limit price while sending order to your preferred broker.
Ex : If LTP is 100 and Limit order buffer is 1%, then Amibroker will send a Limit order of 101 for Buy order and 99 for Short order, this is used by traders to ensure their orders are filled and they give away a very small slippage compared to market orders.
20. Order Quantity : Mention the number of shares to be fired from Amibroker to Algofox here.
21. Entry candle : If your AFL is repainting in nature and you want to avoid false and excessive signals choose completed candle and if your AFL is not repainting choose Live candle.
22. Merge Order : This feature helps you merge (Sell + Short ) and (Buy + cover), if merge order is kept ON, and if there Is a reversal EMA crossover, in a single trade previous entry will be square off and fresh entry will be triggered.
23. Disable Buy-sell : If user selects YES, then all long entries and exits will be stopped for that session.
24. Disable Short-cover : If a User selects YES, then all short entries and exit will be stopped for that session.
25. Strategy Tag : Choose the Tag that you wish to assign to EMA crossover and mention it here.
26. Algofox Trading key : Add key from Algofox trade setting to automate trades from Amibroker to Algofox.
27. Button trading : If kept on, you will see 4 buttons namely : Buy, Sell, Short and Cover to automate trades by just clicking on them.
28. Buy Order Quantity : The Quantity mentioned here would be fired when user clicks on Buy button
29. Sell order Quantity : The Quantity mentioned here would be fired when user clicks on sell button
30. Short order Quantity : The Quantity mentioned here would be fired when user clicks on short button
31. cover order Quantity : The Quantity mentioned here would be fired when user clicks on cover button
32. Button Horizontal Position : Choose the horizontal coordinate where you wish to see this button on chart.
33. Button Vertical Position : Choose the vertical coordinate where you wish to see this button on chart.
Here is the video tutorial of the strategy :