This information requires Trading Blox Builder version: 5.4.2.x or greater.
In the Trading Blox Builder Roundtable forum this question was asked: Same day exit as entry?
•Is it possible to exit a trade the same day as entry other that using the protective stop function? Can you just exit at the close on the day of entry?
•
Yes. You can use the After Instrument Open script to access the trading day OHLC and create orders to exit on the close based on computations and criteria.
Note:
This is fine for back testing, but these orders will not show on the order generation report for trading because they are computed after the open.
1.The entry needs to be in the Entry Orders script. It needs to Enter on Open. It cannot be an" Entry OnSTOP" / LIMIT or Close order.
2.Then in the After Instrument Open script, you can add a Broker call to "EXIT OnClose" order.
3.If you want to Enter OnStop/Limit order, and then "Exit OnClose", you would need to use the Before Close script and do a manual instrument loop.
4.Another option, if using STOP/LIMIT orders, is to place the "Exit OnClose" order in the Entry Order Filled script.
Edit Time: 10/20/2020 3:31:20 PM |
Topic ID#: 710 |