ProRealCode - Trading & Coding with ProRealTime™
In ProRealTime, strategy code is executed once per completed bar by default. This means that when a condition is met, the order is placed but is only executed at the open of the next bar rather than instantly within the current candle.
To execute trades intrabar, use STOP or LIMIT orders instead of MARKET orders:
BUY 1 CONTRACT AT 1500 STOP
SELLSHORT 1 CONTRACT AT 1490 STOP
TIMEFRAME Instruction for Intrabar ExecutionIf you want to execute orders within the current bar while still analyzing a higher timeframe, use the TIMEFRAME instruction:
TIMEFRAME(1 Minute) // Execute orders intrabar
IF close > MovingAverage[20] THEN
BUY 1 CONTRACT AT MARKET
ENDIF
TIMEFRAME(DEFAULT) // Return to main timeframe analysis
This method allows orders to be placed within a candle based on lower timeframe data, making execution faster.
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR. For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.