G’day guys!
I’d like to add a news parameter to my code so if the news and market mood is good the news parameter is 1.2 and if the news is bad the news parameter is 0.8. And I’d like to give update this parameter in the code without stopping it. Is this possible?
It is not possible. But you can suggest developers to introduce it (see
https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/).
It requires interaction between the trader and the strategy, maybe with the help of a text file to be read by the strategy…. how often, at each new candle, each second?
Or maybe through a dialog box that opens whenever you click on the strategy name!
Interaction among strategies has already been suggested, betweeen a strategy and the trader (owner)… I don’t know!
HuwParticipant
Average
The closest thing I can think of involving news is to place bracket orders on forex before a market moving announcement such as rate decisions or central bank minutes. In fact, I may try and code something along those lines.