Possibility to automaticaly set TP as a multiple of SL when putting a market order
Possibility to automaticaly set TP as a multiple of SL when putting a market order
02 Feb 2022, 17:43
Hi all,
I would like to know if it's possible to make an indicator or bot that automatically sets a TP as a multiple of my SL when I insert it for a market order on the active symbol panel on the right
It would save a lot of time when scalping imho.
Additional helpful feature would be if it opens a scrolling menu to quickly select the SL value when clicking on it and this with a 1/10 of a pip precision since it's for scalping.
I'm willing to try and do it myself but my coding knowledge is minimal thus would appreciate any help.
Thank you !
PS : Is it possible to have the SL and TP choice buttons increase/decrease them by 1/10 of a pip rather than a full pip ? Haven't found how to configure that.
Replies
firemyst
08 Feb 2022, 15:31
RE:
nowewo5508 said:
PS : Is it possible to have the SL and TP choice buttons increase/decrease them by 1/10 of a pip rather than a full pip ? Haven't found how to configure that.
Yes.
Use the "step" attribute in the parameter as long as the parameter is declared as a "double" and not an "int".
Example:
[Parameter("Take Profit", DefaultValue = 15, MinValue = 1, Step = 0.1)]
public double TP { get; set; }
@firemyst
amusleh
03 Feb 2022, 08:38
Hi,
Yes, it's possible, you can develop a cBot that will run on the background and whenever you execute an order it can set SL/TP based on your written logic.
You can also use Chart controls to build something more interactive with buttons and other type of controls.
@amusleh