Time limit for an order
Forums › ProRealTime English forum › ProOrder support › Time limit for an order
- This topic has 7 replies, 2 voices, and was last updated 7 years ago by Wing.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
02/19/2017 at 4:29 PM #2562002/19/2017 at 5:19 PM #2562402/19/2017 at 5:41 PM #25625
“Error in line 9 character 18
Please complete the syntax of the line”
When i past your code.
Perhaps i paste the code in wrong place?
Here is my code!
OMX30 15 min and 0,5p spread.
It don’t work good in downtrend, therefore i must have something that stops algon in long term downtrend.
123456789101112131415// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = Average[80](close)indicator2 = Average[5](close)c1 = (indicator1 CROSSES UNDER indicator2)IF c1 THENBUY 2 CONTRACT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 302/19/2017 at 6:08 PM #2562802/19/2017 at 9:15 PM #2564602/19/2017 at 11:44 PM #256651234567891011121314151617181920212223// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivatedonce counter=0counter=counter+1if counter>10 thensell at marketendif// Conditions to enter long positionsindicator1 = Average[80](close)indicator2 = Average[5](close)c1 = (indicator1 CROSSES UNDER indicator2)IF c1 THENBUY 2 CONTRACT AT MARKETcounter=0ENDIF// Stops and targetsSET TARGET pPROFIT 3Does that work?
02/20/2017 at 4:56 PM #25784Yes, it works fine.
But my system did not like it.
It works well but in downtrend it don’t work so good.
What can i do to fix my problem…….
123456789101112131415// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = Average[80](close)indicator2 = Average[5](close)c1 = (indicator1 CROSSES UNDER indicator2)IF c1 THENBUY 1 CONTRACT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 302/21/2017 at 8:18 PM #25975 -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: