I actually trying to use the function setstoploss & setprofittarget in multichart, my main problem is that nothing happend on the chart i try many times to change the value between brakect but still no action .
I have attached to this post the screenshot, if someone have an idea on what's happening i will appreciate the help.
my guess would be that the values are simply never reached. The values within the brackets are in your base currency. So for example your stop loss is for 20$ and your target for 30$. Your signal has bought one unit of the base currency and not one lot. You would need a movement of 20 full points for your stop to get hit. Even with using 1$ as stop loss, this is unlikely to happen.
Raise your trade size to see an effect. Buy 100'000 units for example.
Besides that I would suggest to use a PositionBasis switch like in the build in Profit Target or StopLoss functions, so you are able to specify if the values for stops and targets should be based on the whole position or on single contracts (shares, units).
thanks for your answer, but i'm trading FX and i would like to set a dollar based stop loss or take profit. I try a lot of differents values : ex 0.2,2,20,200,2000 etc but still no change do you know how can i change the position value ?