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)
Setting up a strategy: confused with all the methods
Honestly, I have not given that a great deal of consideration. The spread between Bid / Ask on EURUSD is small enough IMHO that calculating it into an automated strategy is non-beneficial.
What I see as the 'time to fill' (chart closes bar >> calculates that there is an entry >> sends order entrylonglimit (ask, closes, last, whatever) on a fast market overcomes any tests that were done in hindsight. Even a 3 pip margin added to an ask(0) or closes[0][0] target price can leave it unfilled on the next bar, regardless of which direction OR directions the next bar went. I have seen that often in the unregulated currency markets.
If you can get your orders filled 100% of the time at the price you want, immediately, I would certainly appreciate the sharing of that knowledge (ie HOW do you do it?). My best 'hat eating' guess would be that the fill success rate on the next bar for the exact price targeted will be somewhat closer to 35-50% than it is to 65-70%.
Regards,
Jon
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Can you help answer these questions from other members on NexusFi?
In my strategy, adjusted for 2 targets, :: smaller target not met (exited via conditional rule set) - bigger target not met either but is closed out at a higher price via the trailing rules conditions. OR it could be hitting its maximal target. There is no BE stop.
What is the correlation with the scenario? Would you trade it?
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Tj,
I'm sorry its not you its me, but I don't understand your points.
Do you want me to guess? You can just dump the trades into excel and apply a correlation function.
My point is that it will be much bigger than with 2 strategies or the same strategy on 2 instruments.
If you think its good for you then trade it no question.
Again whats your point?
I would not bother with coding strategies if its not possible to backtest them with at least 90% accuracy to live.
On one hand you say bid/ask backtesting is not important and on the other that your accuracy is below 50%.
I have never had a 'handle' on Excel or Lotus123 or any other spreadsheet ... just too much to learn already in NT ... so I am just using what I can with NT, including studying the charts after backtests and optimizations and my written notebooks. Definitely limiting, and does have a an actual calming effect on not having extremely too much information.
No, I think it is me, so I will try to rephrase. I have a sincere admiration for any trader that can get fills on their orders at the price they want, WHEN they want. I dont see it happening like it should in SIM, and it was never happened above about 65% of the time in my live trades (NQ, YM, ES, 6E). I am not talking about stops or targets, I am speaking to filling the order.
I currently run the automated strategy (COBC=true) in SIM, EURUSD on MB Trading and Dukascopy, and the orders are placed and marked by the strategy, ie EnterLongLimit true,Closes[0][0] + (2 or 3) ticks, and often (lets say 50% of time) I can watch the bar move up and down around the target price with never getting a fill. I didnt design to 'chase' the price on a long if it moves up unless the strategy still gives a buy signal on a subsequent bar: this doesnt happen very often unless the market is choppy: I still have to add code to exit the order if not filled in two bars. IF the order filled on the entry bar at a target price as calculated, 65% of time it is profitable. Looking at those trigger marks on the chart, I surmise that 65% of them would have been profiatble as well, if they had been filled.
>>>>>>>>>>>>>> So, what is the 'tool' needed in the strategy to get GOOD fills? I dont want to use market orders as they more often than not get a fill price beyond my initial target, actually getting me into loss mode, and it is psychologically troublesome when I see that happen. <<<<<<<<<<<<
Today I made a decision to revamp my strategy innards to get everything working/calculation based solely on BIP=0 and the indicators are modified to work on the the different BIPs internally within the indicator itself. I am moving from BIP=0 5 Better Renko to somewhere between 1 and 3 ticks bar. I am anticipating/hoping this will giving me the same overall results that the original strategy did, as I use only 3 different indicators in entry conditions and 4 in the trailing/exit codes.
Feedback is appreciated,
Jon
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
well, lol, it seems we have drifted off topic a bit. All interesting stuff though.
anyway, I think I now understand what baruch was getting at on how to set up the strategies.
however, going back to my original question: what is the code/structure for setting up strategies. disregard the fact that this may be the worst strategy ever designed. my programming knowledge is very limited and I just want to learn the code so i can start at least developing the strategies.
but having done some research i think this is what i have to do (and for sake of simplicity, lets say I have 2 profit targets and 1 stop loss. Each profit target to take 1 /ES contract for example.):
define 2 strategies and trade them at the same time.
strat 1: profit target 1 and stop loss trades 1 /ES.
strat 2: profit target 2 trade 1 /ES. initial stop loss is at the original stop loss. when the price has moved up to strat 1's profit target, move the stop loss to that profit target or BE or whatever.
I came up with this trading idea and a programmer did the coding for me. After some optimization, the results look decent. But in real time it could be a different story. Please do not risk your real $. I repeat, please do not risk your real money.
Basically, …
Study the code in the strategys for a day or two and you will start to get an idea of the sequence and what the structure is. F1 help isnt luxurious with example code but it is useful to get a feeling what each part of the code does when you see it in a completed strategy.
Let us know how you progress and ask questions about specifics as general questions can be more suitable for a hands-on education and not so productive for slow typists like myself.
Jon
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Thanks TJ. That is kind of what I needed. I actually did not realize that you can download all those strats from NT forums (should have checked). Time to begin reading and running those strats in debug mode
Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!