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)
thanks for you answer. The good things about forums (expecially FIO :-D) it that other experts made you think twice about your idea.
So I went back to check if the simple "HIGH" modifications should be the solution.
I took again a screenshot of the trade that we were talking at the beginning of this thread and then I made a a blue rectangle to show you what should be the area where the order needs to be filled.
So The level below the rectangle is a oYesterdaysTPOVALow and just after it cross the level (just leave on the side the other conditions related to the previous bars) the system should place a SHORT order at oYesterdaysTPOVALow + 3 limit so if I'm not wrong there's a 7 points room to execute that order from oYesterdaysTPOVALow + 3 and oYesterdaysTPOVALow + 10 () .
So by using this code(please correct me if I'm wrong):
H >= oYesterdaysTPOVALow and Price - oYesterdaysTPOVALow <= 10
the system should take the order alive inside the BLUE rectangle starting from 3 points over oYesterdaysTPOVALow till the top and NOT OVER (and that 's what I want, I don't want a short higher as it could probably turn in a SL based on my strategy). So H can be even Higher but I want that the short order is placed WITHING 10 points from the oYesterdaysTPOVALow and not more, so as soon and the price drop BELOW oYesterdaysTPOVALow <= 10 the order will be placed alive.
I think that the 7 points room is enought to trigger the short order. Don't you think?
Thanks as always and Regards,
David
Can you help answer these questions from other members on NexusFi?
it might not always be 7 points, though and you might want to consider the situations and think about how you want this dealt with if the High - oYesterdaysTPOVALow is equal (or in close proximity) to 10.
There is probably not a right or wrong answer here and the best solution (for you) will be the one that does what you want the code to do.
Regards,
ABCTG
Dvdkite
Hello ABCTG,
thanks for you answer. The good things about forums (expecially FIO :-D) it that other experts made you think twice about your idea.
So I went back to check if the simple "HIGH" modifications should be the solution.
I took again a screenshot of the trade that we were talking at the beginning of this thread and then I made a a blue rectangle to show you what should be the area where the order needs to be filled.
So The level below the rectangle is a oYesterdaysTPOVALow and just after it cross the level (just leave on the side the other conditions related to the previous bars) the system should place a SHORT order at oYesterdaysTPOVALow + 3 limit so if I'm not wrong there's a 7 points room to execute that order from oYesterdaysTPOVALow + 3 and oYesterdaysTPOVALow + 10 () .
So by using this code(please correct me if I'm wrong):
H >= oYesterdaysTPOVALow and Price - oYesterdaysTPOVALow <= 10
the system should take the order alive inside the BLUE rectangle starting from 3 points over oYesterdaysTPOVALow till the top and NOT OVER (and that 's what I want, I don't want a short higher as it could probably turn in a SL based on my strategy). So H can be even Higher but I want that the short order is placed WITHING 10 points from the oYesterdaysTPOVALow and not more, so as soon and the price drop BELOW oYesterdaysTPOVALow <= 10 the order will be placed alive.
I think that the 7 points room is enought to trigger the short order. Don't you think?
it might not always be 7 points, though and you might want to consider the situations and think about how you want this dealt with if the High - oYesterdaysTPOVALow is equal (or in close proximity) to 10.
There is probably not a right or wrong answer here and the best solution (for you) will be the one that does what you want the code to do.
Regards,
ABCTG
Hello ABCTG,
if the order is in proximity of Price - oYesterdaysTPOVALow = 10 then it is going to be the maximum price accepted for the short as the short at oYesterdaysTPOVALow + 3 limit order will be immediately executed at oYesterdaysTPOVALow + 10 (or 9 whatever) at a better condition than required.
Anyway as you said there is probably not a right or wrong answer here but the important thing is that the code does what I want and then I think that the real test will give us an aswer :-D
I agree, your testing should show this. What I had in mind is that this could trigger an order cancellation when the High on the next tick is one tick higher - but you might be already filled then of course - if not, your code would not be able to re-issue an order for that bar, though, as this particular entry condition can't become true anymore.
Regards,
ABCTG
Dvdkite
Hello ABCTG,
if the order is in proximity of Price - oYesterdaysTPOVALow = 10 then it is going to be the maximum price accepted for the short as the short at oYesterdaysTPOVALow + 3 limit order will be immediately executed at oYesterdaysTPOVALow + 10 (or 9 whatever) at a better condition than required.
Anyway as you said there is probably not a right or wrong answer here but the important thing is that the code does what I want and then I think that the real test will give us an aswer :-D
the Paper Trading Account will use its own symbol mapping, there shouldn't be any conflicts in two different accounts.
Regards,
ABCTG
Hello ABCTG,
just a few seconds ago I had another series of order rejected for "not enough margin". Because I settud up the paper broker with just 5050$ and it sais that the DAX require 34000$...( ok now I can simply put more money as starting point into the paper broker) I was just wondering where the paper broker took that value?? With CQG for example the intraday margin is 2500$ ... but I think the platform took it from the cqg broker..
what makes you think the margin was taken from CQG? As far as I am aware the margin should be taken from your Quotemanager settings for a symbol when you are using Paper Trader. If the margin value is not set or 0 MC will compute the margin if I correctly recall using the big point value and current price. Therefore either using the correct margin value in QM (or a value of 1) and/or raising your account value should work as a fix.
As a rule of thumb always check the symbol settings when you added a symbol as it's not guaranteed that the settings are correctly added.
Regards,
ABCTG
Dvdkite
Hello ABCTG,
just a few seconds ago I had another series of order rejected for "not enough margin". Because I settud up the paper broker with just 5050$ and it sais that the DAX require 34000$...( ok now I can simply put more money as starting point into the paper broker) I was just wondering where the paper broker took that value?? With CQG for example the intraday margin is 2500$ ... but I think the platform took it from the cqg broker..
what makes you think the margin was taken from CQG? As far as I am aware the margin should be taken from your Quotemanager settings for a symbol when you are using Paper Trader. If the margin value is not set or 0 MC will compute the margin if I correctly recall using the big point value and current price. Therefore either using the correct margin value in QM (or a value of 1) and/or raising your account value should work as a fix.
As a rule of thumb always check the symbol settings when you added a symbol as it's not guaranteed that the settings are correctly added.
Regards,
ABCTG
Hello ABCTG,
No I didn't mean that it is taking from CQG the margin, because that's impossible (the paper broker use the IQFEED chart). I was just mentioning that CQG require 2500$ so I was wondering how much does require the Paper broker... it was just for comparison.
As we talked I didn't modified the Symbol setting for the PAPER TRADING(you said that paper trading broker has its own symbol settings)... because actually the symbol settings of #XG iq feed has the setting to buy/sell with CQG with real trading. It's impossible to import more than once the same symbol from Iqfeed so by using the paper broker I didn't take care of symbol mapping.
BTW: the symbol mapping of #XG iqfeed is actually like this (and it should work in real trading automation .....I hope):
Anyway I just raised my paper trading account and I'm waiting to see the first trade with the automated trading on