Trabalho concluído
Termos de Referência
The TP/SL system needs to be changed
1. Hide/make nonfunctional 4 parameters: fallback_tp_mult and fallback_tp_mult. Hide parameters: "useEmergency tp/sl ", "newtp", "newsl".
2. Create two NEW parameters (one TP/ one SL) to replace the 4 hidden functions - to make only ONE emergency tp/sl system.
The new emergency TP system will be a multiple of the original tp value that is set by the "Takeprofitmode = TP_MODE_SD_Percent = TP PERCENT = default % value" functions. In the event that the original value does not meet minimum requirements the Emergency TP system will multiply this value.
The new emergency SL system will be a multiple of the original sl value that is set by the " Stoplossmode = SL_MODE_SD = Stoplossdeviation = default value. In the event that the original value does not meet minimum requirements the Emergency SL system will multiply this value.
However, the original tp/sl and emergency tp/sl systems must be independent e.g. if the original SL satisfies the minimum requirements but the original TP does not, only the emergency TP system will be activated - rather than the emergency system being activated for both. This is to prevent unecessary risk/uncertainty and maks sure only the "failing" parameter(s) is fixed.
TP/SL for the trend/second trade
The SL/TP for the second trade are made to be both parameters that are multiples of the SL of the first trade
Email order and result structure
On the Open positon email I want it to say -
1. The email Subject line = "ORDER - Symbol name and type of position" for example: "ORDER - EUR/USD BUY"
2. The email Message space = "#Order number - Entry Price =, SL =, TP =" for example: "#4834783483 - entry price = 100, SL = 98, TP = 102"
On the result email I want it to say -
1. The email Subject line = "RESULT - the symbol name and type of position (buy/sell)" for example: "RESULT - GBP/USD SELL".
2. The email message = "'#Order Number - Result = £x and x points" for example: "#353454353 - Result = £10 and 100 points"
The current format of the order and result emails are not in this format and it looks messy.
Extras
Arrows are placed at the entry and exit price of a trade for both original and second trades.
The Stoploss deviation lines also drawn on and updated every minute (just like the trading deviation lines) - so in total there will be 5 lines, 1 linear regression, 2 trading standard deviation line (e.g. +/-4th deviation) and 2 stop loss deviation lines (e.g. +/- 6th deviation line).
This Stop loss deviation line setting must be an optional parameter (e.g. true/false), it will derive from the "Stoplossmode = SL_MODE_SD = Stoplossdeviation = default value" string.
*All pre existing functions must continue to work