指定
I am looking to create a semi-automated position managing program for the TAS indicators software.
In the most basic summary the way TAS indicators work is that it draws 3 bars on the chart Red, Blue, Green. When the price is above red bar its an area for long positions and when its below the green bar its an area for short positions. In the scenario where you had entered the long position (price above red bar) you put your stop loss under the green bar. As the price travels across the chart new bars are created at which point you can trail your stop loss by constantly moving it under the new set of green bars.
You can watch the video on how it works here:
https://www.marketprofileindicators.com/boxes
What i will require from the robot.
We assume i have entered the long position. After the initial manual entry i will need the following:
1. When the price moves certain amount of pips (user defined parameter) to scale out % of the position (user defined parameter)
2. Move stop loss below the green bar by x amount of pips (user defined parameter)
3. The remainder of the position is now left to run until the new set of bars appear at which point stop loss is moved below the green bar by x amount of pips (as defined in step 2)
4. If the price breaks out (crosses above the red bar) on the new set of bars add to the position X lots (user defined parameter) + set stop loss below the green bar by x amount of pips (as defined in step 2)
The above will continue until the price reverses and stops out position by crossing the green bar.
Depending on the service fee and the difficulty an additional feature would be to also scale out % of the position (user defined parameter) every time TAS Indicators resistance / support levels reached.