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)
Mike, let me make a tiny correction: you cannot trade off any data stream besides data1 (the default one) in Multicharts (or my knowledge is very limited), so you need to have regular bars as data1 and any auxiliary information as data2, data3,...
I think just a single data stream is more than enough here — and of course no need for external DLLs and other stuff. If I'm not mistaken, the following definition of range bars is correct:
If the above quote is correct, then you just need a very simple code to markup your "range bars" and unwrap them on the regular time-based bars, something like this:
Thus you can add some code which is executed when the range bar is comlete, i.e. when isBarComplete = true. Of course this code works best on tick data, but should also work on N-seconds and N-minutes, of course with some error. Whether this error is significant for you or not — it's up to you to decide.
The goal is a strategy that will send orders inter bar from range type bars.
Let me see if I have this right.
Build a synthetic bar as you noted above.
Inserts code for the indicator that is driven by the code for the synthetic bar.
Take the above two statements and insert that into a strategy and code the strategy to be driven by the indicator driven by the synthetic bar.
Then place that strategy into a tick chart and and it should be able to place orders inter bar.
I think it will work and I'll let you know if I have any success.
Thank you
Even with data1 being one minute, all of the orders are being executed on 00 & 30 past the hour (or 01, 31). There's a stochastic trigger on data2 but I just can't get it to execute except on the data2 closes! Very frustrating.
Thing is: if you have the strategy turned off & then turn it on, it will enter into a position at any time it's triggered. It's getting out whenever it's triggered is my problem. I want it to get out regardless of the time (or close, etc).
Hi Mike!
May be you have some piece of code? Its very difficult for me to realize.
I have 2 charts: 1 tick range and 1 minute. And i want to sell if level broken
and no matter -10 point or -1 poin - sell began on the same price((
if condition3 and condition5 and LastDelayLow then
begin
Sell Short ( "S" ) next bar at oPivotPriceLow -10 point stop;
// Sell Short ( "S" ) next bar market;
LastDelayLow = false;
end;
or
if condition3 and condition5 and LastDelayLow then
begin
Sell Short ( "S" ) next bar at oPivotPriceLow -1 point stop;
// Sell Short ( "S" ) next bar market;
LastDelayLow = false;
end;
You can only use if CurrentBar > 2 and Value1 crosses over Value2 then
Buy ( "MacdLE" ) this bar at CLOSE ;
In any case none of the bars that use filled in data points will test accurately regardless. (Kase, Range, Renko, Renko+).
The strategy will think you entered on the exact close of the bar, which is very far in most cases from where the actual price is. Renko bars with "wicks" help, but are also inaccurate. All results will be overly optimistic, so much so, that the actual strategy will in reality not work at all near your expectations.
Run your strategy in Tradestation on one of these bars live and you will see a loss accumulating in the PNL bar in the left corner, Lets say of $1000.00 Then go to the Performance Summary and go look up the exact trade in the trade list that just happened, and you will see a loss of maybe $300.00 or even a gain!
Just doesn't work unless every single tick is counted, which is just not practical unless your running a "Watson" computer at home. Even then you have to reconstruct this to the exact times offline. Even third party vendors who supposedly do this will only allow a few days of tick accumulation , which is certainly not enough to make any kind of conclusions about strategies. Which is why most strategies from most platform vendors use "on bar close". Under normal bar types this is sufficent, but on "advanced types" it just doesn't work.