1. Entry Logic -- Indicator levels -- Right now we have exit logic based on indicators but we also need to add to the entry logic and have the ability to enter orders in advanced at an indicator level defined in a block. This would allow you to use strategies where you find x trade condition that set a limit order at a high/low in order to trade. Note: I am not talking about indicator conditions where x conditions need to occur for an order to be fired. I am talking about the placement of orders at indicator block levels after a condition has been met
There should be an option to recalculate the values for the order placement every bar for stop limit orders. By default this option will not be active which means orders will be placed at the level they are calculated to be at that moment and will not change. I.e. Mark mentioned earlier the ATR no longer recalculates every bar and the logic is based on where it is at the time of trade.
However, because we are entering instead of exiting, it may provide benefit to recalculating the value stop limit order and moving it along with the updated indicator level it is placed at.
2. Exit Logic -- Nearest X level -- This would allow SQX to use the nearest X level as a target/stop where X is the value for the amount of iterative levels away.
For example: SQX should be able to target the 2nd nearest high instead of the just the first. The same can apply to indicators with multiple levels both above and beneath them such as pivots etc.
The tricky part is that you need logic that can handle individual indicators that have a lot of levels contained within them such as pivots or high/low indicators and you need logic to accommodate for the nearest x level within that indicator AND we also need to accommodate for indicator blocks that are not the same indicator.
A mode can be added for the nearest indicator level. I would recommend that there be a section where blocks can be added to that handles this logic. When adding an indicator block that has multiple levels within the given indicator, all of these levels are exposed to SQX along with any additional indicator blocks that the user adds. This way a user can keep the nearest x logic specific to pivots for example if that was the only indicator that was added, or they could and high/low and pivots together to get an algorithm that looks for the nearest x level between pivots or high/low so whichever level is nearest between the two indicators is used for this value.
All levels displayed on the chart from all indicator blocks are stored into memory and compared to the current price in order to find the nearest x level. This will make the logic calculate indiscriminate of each other indicator block.
3. Entry/Exit Logic -- Head/Tail Distance Threshold -- This would limit the distance to the level that SQX can trade.
For example: Say a user wanted to find strategies that traded at the low of the day. SQX can easily create a strategy that trades 10x ATR or 100+ pips above the low of the day. This would not be ideal for trying to find strategies that are unique to that level as the distance is too far. Limiting this distance to a max threshold in pips and in ATR forces SQX to work in a tighter range relative to the level used for trade entry.
This would look at a minimum distance between the entry level and the current price that a condition must occur within in order for a trade to fire.
There should be a Head/Tail setting where Head is the distance above a given indicator level and Tail is the distance below a given indicator level. For example, if I have x indicator condition that turns true to fire a trade, it must also be true that price is between the indicator level (Low of day) and + 2.5x ATR ( Head mode). So looking at the area below the Low of day for a trade would be Tail mode and look at -- 2.5x ATR below the Low of Day in this example; here this may be used as a breakout to go short. So one application of this is that will help support resistance traders identify S/R bounces and trade breakouts by looking at conditions to occur within a certain region for order execution.