I am trying to create a new algorithm that enters into the market as soon as the conditions are triggered rather than after the close. Is this possible?
I know there has been a few big updates so I was wondering if this is now allowed.
In PRT, the code is read after the Close of the bar, so conditions that are triggered during the formation of the bar will (still) be executed after the Close of the bar… (for buy/sell on the Open of the next bar
JS is right in general, but since the Multi Time Frame support was added, a few years ago, it’s indeed possible to achieve your goal.
Coding with multiple timeframes is not so complicated, but it requires a few additional skills that you can learn reading the hundreds of examples, posts and blogs on the subject.
Search this forum for the MTF word and you will be returned dozens of links to tons of lines of code and info.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue