This project consists of 3 amendments to an existing MT4 indicator that calculates position size.
The indicator currently uses lines on the chart to allow the Stop-Loss and Take profit order levels to be set.
The indicator no longer needs to draw lines on the chart.
Instead it needs to read the Stop-Loss and Take-Profit level from horizontal lines drawn by another indicator.
The other indicator creates lines called:- "NEW_SL" & "New_TP"
Stop-Loss line = Horizontal line = "New_SL"
Take-Profit line = Horizontal line ="New_TP"
The important thing is to get the position size indicator to read the price level that each of the lines are currently at on the chart and use these in the calculation.
As the user moves the lines on the chart the indicator needs to recalculate based on the new Stop-loss and Take-profit levels.
Only show the position sizing information if the "NEW_SL" & "New_TP" lines are visible on the chart.
When the "MyOrder" lines are detected the lot sizing calculation is done and the text appears on the chart.
Automatically hide the position size indicator if the "MyOrder" lines do not exist on the screen.
Re-order the position sizing information text on screen as shown below.
In addition calculate the relevant lot size based upon more than one % risk. Therefore by default show the lot size that would be used for .25% risk, .5% risk, 1% risk, 2% risk and 3% risk.
New layout and information:-
AUDUSD Ask: 0.98566
Stop Loss: 0.98566 (30 pips)
Take profit: 0.98566 (50 pips)
Risk: 0.25% | 0.50% | 1.00% | 2.00% | 3.00%
Position Size: 2.20 | 4.40 | 8.80 | 17.60 | 35.20
Risk, money: 2477.60 | etc | etc | etc | etc
Please note that I require ownership of the intellectual property and copyright of the code.
My expectation is that this is fairly straightforward and based on previous projects should cost around $50.
I will send the code for the existing indicator to interested parties. Please note that the most important aspect of this project is to be able to get the indicator to read the current price of the horizontal lines. Hopefully you can get the price information by looking at the object name. Otherwise the price will need to be written to a buffer by the indicator that creates the lines.