Algo Trading @MasterTrust

Weekly Tip #6 Continued from Bracket Order: Simplest Automated Trading, Using Renko Charts with MasterTrader v3.0, Scale-in and Exit with Net Position Check, Smart Execution and Using Multiple Time-frame for Position Sizing

Time Stop Loss

Usually traders use two types of stop loss- Entry (Fixed) stop loss and Trailing Stop loss. An Entry stop loss limits the maximum loss in a trade while the trailing stop loss protects the profits of a winning trade.

However, traders who use Charts (Technical Analysis) for trading also require- Time stop. The Time stop loss exits the trade if the market becomes dull or is stuck in a sideways range. MasterTrader v8.0 has an inbuilt Time stop loss which can be applied using 'Stop Incr' parameter.

Example: Assume that the 15-minute charting strategy generates a BUY signal and it is traded automatically at Rs. 100.00. If the Stop Incr parameter is set to 0.10, the trailing SL will increase by 0.10 on completion of every candle even if the price do not make a new high. If the markt remains at same level for two hours (8 candles), the SL will automatically increase to Rs. 100.80. Such Time Stop helps to close the trade if market loses momentum.

Happy Trading!
AlgoTrading@Mastertrust
Click for Inquiry
Click for Demo of MasterTrader v3.0
 
@arun_1976,

The MasterTrader v3.0/v8.0 provides current contracts data which can be used for trade decisions. To purchase historical data for backtesting/research purpose, please contact NSE or NSE authorized data vendors.
 
Hi, mastertrust.

i am working on a new strategy where i need 2 exits, i need some help in writing the code in amibroker for the same. for eg. MA 3,13 crossover. I want to buy 2 lots. 1 i want to exit at a fixed point and other when the MA 3,13 reverses.

Can u guide me
 
Hello Master Trust

Recently while I was developing a custom AFL that involves Nifty Future and entire option chain, I noticed a very strange problem.

I was connected to the master trust data plugin and database was configured to use the QuantX DLL.

For Cash Scrips, if I have data upto 20th Jan and do not connect on 21st at 9:15, it fills in the data from 21st morning and everything works reasonably well.

However for FUTURES and Options scrips, it deletes all the data that was saved in amibroker earlier and attempts to back fill from the very first day that the specific contract become active. For my AFL that fetches data for 1 future in tandem with 120 calls and 120 puts, it sends complete backfill request for 241 scrips and the entire machine is more or less gets frozen for good 20-30 minutes. Machine does not hang but swamped with work. All F&O symbols are identified correctly and also shown queued up in the panel.

Until the entire queue is handled, any request for cash scrip also end up in the queue.

Also, is there a way I can simulate a continuous NIFTY contract and continuous NIFTY Option strikes?
 
Hi, mastertrust.

i am working on a new strategy where i need 2 exits, i need some help in writing the code in amibroker for the same. for eg. MA 3,13 crossover. I want to buy 2 lots. 1 i want to exit at a fixed point and other when the MA 3,13 reverses.

Can u guide me
arun 1976

This can be done very easily and you can also be back-test the results on data that you have available with you.