Conversion of a proRealTime code to EasyLanguage
Forums › ProRealTime English forum › ProBuilder support › Conversion of a proRealTime code to EasyLanguage
- This topic has 10 replies, 4 voices, and was last updated 4 years ago by Nicolas.
-
-
03/19/2020 at 2:40 AM #1225241234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253//Definition of code parametersDEFPARAM CumulateOrders = False //Cumulating positions deactivated//The system will cancel all pending orders and close all positions at 000. No new ones will be allowed until after the FLATBEFORE time.DEFPARAM FLATBEFORE = 090000//Cancel all pending orders and close all positions at the FLATAFTER timeDEFPARAM FLATAFTER = 173000// Conditions to enter long positionsindicator1 = Average[10](Stochastic[36,10](totalPrice))indicator2 = Stochastic[36,10](totalPrice)c1 = (indicator1 CROSSES UNDER indicator2)IF c1 THENBUY 1 SHARES AT MARKETENDIF// Conditions to enter short positionsindicator3 = Average[10](Stochastic[36,10](totalPrice))indicator4 = Stochastic[36,10](totalPrice)c2 = (indicator3 CROSSES OVER indicator4)IF c2 THENSELLSHORT 1 SHARES AT MARKETENDIF// Stops and targetsSET STOP pLOSS 30 pTRAILING 18
Hi Everyone,
i’d like to convert this code to easyLanguage but I don’t have any knowledge with easyLanguage . Anyone can help, please !
03/19/2020 at 7:38 AM #122527Free conversions are only done for code written in other languages to PRT.
The other way round is available as paid service at https://www.prorealcode.com/trading-programming-services/.
03/19/2020 at 7:56 PM #12262303/20/2020 at 11:36 AM #122687PRT code1234567891011121314151617181920212223Defparam cumulateorders =falsedefparam flatbefore = 090000defparam flatafter = 173000//parametersa1=Stochastic[36,10](totalprice)a2 = Average[10](Stochastic[36,10](totalPrice))// Conditions to enter long positionsif a1 crosses over a2 thenbuy 1 share at marketENDIF// Conditions to enter short positionsIF a1 crosses under a2 THENSELLSHORT 1 SHARES AT MARKETENDIF// Stops and targetsSET STOP pLOSS 30 pTRAILING 1803/20/2020 at 11:38 AM #12268903/20/2020 at 12:44 PM #12270203/20/2020 at 1:17 PM #122708@Zigo Are you sure this is the EasyLanguage version?
Moreover, line 23 is not accepted by PRT, only one type of SL at a time. For trailing stops it’s recommended to use code snippets rather than built-in instrucions.
03/20/2020 at 1:48 PM #12271303/20/2020 at 2:16 PM #12271803/20/2020 at 2:47 PM #12272503/20/2020 at 2:54 PM #122728 -
AuthorPosts
Find exclusive trading pro-tools on
The topic ‘Conversion of a proRealTime code to EasyLanguage’ is closed to new replies.