hey if anyone out there wants to take a shot programming a script have at it here are my rules for a good one that i traded manually today and made a killing. open 730 chicago monday close friday 200pm,20 contracts market order,buy on lime reverse on maroon,7 zerolag-7 zerolag,ive enclose some pics...sharky
The following 4 users say Thank You to sharky for this post:
Below if the initial attempt to code this strategy. I've included the raw .cs file as well as a .zip file. The zip file includes all the required indicators. If you already have them then just copy the .cs file to your bin/strategy folder, open, and then compile.
1) SessionStart/End times should be set in the chart. However, I have also included similar properties in the strategy to override the chart. The strategy will not trade before/after the times set in the strategy properties. I did this as a precautionary measure (I can remove if not necessary).
2) The number of contracts to trade is set as a property of the strategy (def = 1)
I experimented with setting the CalculateOnBarClose = false but because of how the indicator works you could be in and out of a position many times during a bar. The strategy is now set to CalculateOnBarClose = true.
Quick observations: the actual entry comes 1 bar after the trend changes. The indicator actually paints the previous line/bar. Handling this on a tick by tick basis may be the way to go given some further logic (ex. trend changes and after x ticks in same direction take trade). I have a ton of other ideas but I think this is a good start.
Let me know what suggestions/ideas you may have and I'll get them coded. Also, PLEASE test this well before using on a live account to make sure everything is g2g.
I am leaving for a long weekend tomorrow but can resume development on this next week.
now even if i set it on 20 contracts it still only buys 1 contract any ideas? i set it on set order quanity ----- by default quanitu
and i set it on----- by stratigie and both still let me only buy or sell 1 contract even if i have the very top set at 20??? thanks for all your help...sharky