
is correct to solve this problem, thanks for all @aliso @l-andorrà @roar
Posts made by OntradingX
-
RE: Limit Maximum symbols trading.posted in Questions & Answers
-
RE: Limit Maximum symbols trading.posted in Questions & Answers
I believe I found the problem, all this has to be done in "On Trader" and not in "On Tick"
-
RE: Limit Maximum symbols trading.posted in Questions & Answers
I also used this block, which I understand would make it a lot easier, but from what I've seen it's not working well either.

-
RE: Limit Maximum symbols trading.posted in Questions & Answers
@aliso
Can you give me an example of how to do this?
From what I understand your solution will not work, because I am working with multi-markets so I will have the 28 forex currency pairs in the key to open trades.
Imagine that I set the EA to allow only 3 pairs to trade, so I set the number 3 in the condition.
If I have for example:
1 EURUSD trade.
1 GBPUSD trade.
1 AUDUSD trade.
So if the EA tries to open +1 trade, no matter what currency it is, it will not be allowed because 3 simultaneous open trades have already been reached, even if they are different currency pairs.
Did you understand? -
RE: Limit Maximum symbols trading.posted in Questions & Answers
@l-andorrà
I'm believing it might be a BUG for the following reason.
Reading the Logic:- Loop through all the assets being requested.
- Save these assets across all interactions in a variable.
- Check if "There is any buy or sell position" for each of the assets.
- Check if the Maximum Defined Symbols is lower than requested. If it is lower 1 time per bar buy or sell.
I believe the logic is correct.
For this reason I believe there is a BUG. -
Limit Maximum symbols trading.posted in Questions & Answers
Friends, I'm trying to limit a max of trades per symbol.
For example, I can put 28 currencies to trade, but if I define that I want a maximum of 3 trading, the EA should respect it and it is not respecting it.
Can anyone see in this project where I'm getting the logic wrong? -
RE: Position Created block with failure.posted in Bug Reports
@fxDreema
The "For each position" block has a problem.
I have some EA's of mine that depend on this block to obtain price values only for the last order, or for all orders, but they simply get confused. Sometimes it does what it needs to do, sometimes it doesn't do what it needs to do, something intermittent, usually involving calculations.
I'm trying to draw up a project showing what kind of bug is happening and as soon as I have it I'll open a specific BUG for this block, but if you want to start reviewing it, please do so, you might find something and apply some correction before even if I try to reproduce the errors. -
RE: This block " For each position " may have problems.posted in Questions & Answers
@l-andorrà my project that is showing an error is very large and has many blocks that, due to the language, maybe nobody will understand. I'll try to create a test project for this and share it here.
My initial idea was to know if anyone is noticing any difficulties with this block. -
This block " For each position " may have problems.posted in Questions & Answers
Note the options in the drop down menu:
group
manually opened
All (Automated and Manually Opened)I created an EA that has to execute an action whenever an order (manual or by any other robot) is opened.
If I use the Group option or choose Manually both are in an eternal loop going through the red output.
If I use the last option, the EA behaves normally. It executes only 1 time per open trade and doesn't execute anymore.Is anyone else getting something weird with this block and these options?

-
RE: Position Created block with failure.posted in Bug Reports
@fxDreema So this problem is solved?
Can we test to validate? -
RE: Position Created block with failure.posted in Bug Reports
@fxDreema Please at least let us know if you are trying to resolve it. Being without answers is worse than not having the solution to the problems.
-
RE: Position Created block with failure.posted in Bug Reports
@l-andorrà
What makes me sad is that before the data kidnapping that the admin mentioned everything worked normally, I'm afraid that most of my projects are damaged, this is causing me huge losses because I made some robots for other people and after I updated this month most of them showed some strange behavior, imagine the trouble I'm having with all these bugs. It's been a horrible experience not having these issues resolved. -
Problem with orders distancing.posted in Questions & Answers
My EA has a rule that in Backtest works very well, but in real account it happens this problem.
See in this case in particular, I have set my EA to open an order every 200 points of distance, it doesn't look at any rule anymore, it just looks at the distance, in this candle (big red it waited for the candle to close to open a new order , but I don't use either the " once per bar " block before or after to make this happen.
Does anyone have any explanation as to what might be going on?To open the distance I am simply using the block " pips away from open pricing".


-
RE: Position Created block with failure.posted in Bug Reports
@QuantEngineer Thanks for contributing.
This is exactly what is happening and it is very important for this block to function properly. I think he is one of the most important.
@fxDreema Can you please help us ? -
RE: Block does not respect distance of orders.posted in Questions & Answers
@Alan-paredes2 I don't use this property because I don't work with pips but with points.
So I delete everything that is written there, just so I don't have to configure it differently for each brokerage, in my opinion it makes my work difficult and it's something that I never really understood how it works. -
RE: Block does not respect distance of orders.posted in Questions & Answers
@Morpheus_0 Hello friend, I didn't post any link because I didn't think it was necessary, it's something very simple to do.
-
BUG to limit amount of trading assets?posted in Questions & Answers
Hello friends, recently I've been testing how to limit assets and thanks to our friend @roar I found a way to do this.
But after numerous attempts I am not succeeding.
See the project... I created a simple condition where I only inform that if there were less trades than what I want the EA should continue, if there are more than I allow it is not for trading, and even then it doesn't work.
I'm starting to believe it's a problem, can anyone help me figure out if it's a problem or if it's a matter of logic that it's incorrect on my part?Project Test below:
https://fxdreema.com/shared/Dvt79NcPd