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)
I'm hoping someone would be able help or point me in the wright direction for using the IOG with buy at market.
My apologies if this has already been posted as I've looked around and could not find anything. This is my first trying to script anything so i do apologies if my question/ observation is stupid/ obvious.
The issue I'm having with IOG is that it appears to be placing the trades at the top of the candles instead of when the IF statement became valid. I've attached the screenshot of this
With IOG off it buys at the next bar as it should.
Initially i used the currentBid function but this gave the same results hence i tried the 2 wmas
Thank you in advance as I've spent the entire night trying to figure this out. With no Luck.
Can you help answer these questions from other members on NexusFi?
Try changing your stops and targets to a market order and see if it makes a difference. It seems like whenever I use limit orders, I run into orders at the high/low of the bars sometimes, instead of the open close.
Just a thought, might not make a difference. (and yes, I realize those are exits and your concerns are with the entries, but it's worth a try)
"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
1) Do you have "Build minute and daily bars based on tick data" configured in QuoteManager for EURUSD?
2) How many entries/exits would you like to "allow" (Format Signals->Properties->Enable Intra-Bar Order Generation setting; can be set to one of three settings)
3) Do you have the Bar Magnifier enabled? (Format Signals->Properties->Backtesting->Backtesting Precision->Use Bar Magnifier; set to to 1 tick resolution or whatever you want)
With the above enabled, I get (with your signal/script)...
Hope that helps...
-Guy
p.s. don't forget when using IOG, "Next Bar" really means "Next Tick" and "This Bar at Close" really means "Next Bar" - gotta love IOG
************************************************************************************
If you want to refer to the open 3 bars ago, then use Open[3] or O[3] etc for high, low etc..
sorry the 3 was just an example the, as in the open, high low ect. of the bar where the entry was triggered. The entry could of been 2/5/7/xx bars back from the current bar but i would like to have the values of the entry bar.
Well i managed to get the count bar thing but it appears that its not using the actual values of the candle but rather substitutes the lows/highs with open/close.
From read so far it appears that MC reads only the Open/close of historic bars. Is there a way to makes it read the entire candle?
My very "i seriously need to learn better syntax" if loop.
Well i managed to get the count bar thing but it appears that its not using the actual values of the candle but rather substitutes the lows/highs with open/close.
From read so far it appears that MC reads only the Open/close of historic bars. Is there a way to makes it read the entire candle?
My very "i seriously need to learn better syntax" if loop.
if (count1 = 0 ) then begin
if (barssinceentry > 0) then begin
count1 = count1 +1;
if (barssinceentry > count1) then begin
count1 = count1 + 1;
end;
end;
end;
Can you include the code where you're trying to access High/Low vs. Open/Close? Not sure if you're using MessageLog() or not, but you might want to debug that way as well,