Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
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.
Some notes:
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.
It will work on any chart (time frame) - just add the strategy to the chart you want to use (the 7/ZeroLag is hard-coded into the strategy so no need to set).
If you want to visualize the DMA indicator on the chart you will need to add it to the chart separtely.
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
Sorry about that Sharky (only tested w/ my usual 1 contract). I just made the same mod as zeller4 (didn't upload new version as it's exactly the same). Thanks for the update guys.