how Activate one deal in direction without no trade?
-
In this picture there are two problems, in case of buying or selling, the robot is buying two deals possible due to the price move.
But how do I make it even if the buy or sell condition is met, because of a previous deal in the same direction, stop opening until the trend changes.
So that there is only one deal in one direction, even if the sale condition or the BUY condition is repeated in the same direction.

The second problem: When closing the winning and losing deals after achieving a profit of 10 points, it starts opening the deals at the last deal that was closed and does not start from 0.01
Meaning when opening multiple positions
BUY 0.01 THEN BUY 0.02 THEN SELL 0.03 .... buy 0.09 ETC.... WHEN TOTAL BECOME =10$ AND CLOSED ALL POSITIONS .
A new opening position start from 1.00 not 0.01 .

-
Could you please share your project?
-
-
Just a few questions.
- Conditions in blocks 30 and 31 are based on cnadle ID 0. Are they working properly? Are they behaving as you want?
- Those 'Once per seconds' blocks will not work as designed, They are on the 'On tick' tab. That means that is there are not ticks arriving to the platform, they will not be executed.
- You need a variable to be reset regularly on order to get a new 0.01 lot size. You are using a Constant instead.
Let's begin with this, if you don't mind.

-
@khalids222 For the first problem: use the block "check type (last closed)".
I won't bother answering the second problem, because I just think that's going to the wrong direction. You shouldn't treat the market as a roulette table. Well, at least its good practise
-
@l-andorrà I see it works well on the same half-hour frame as the OneBar.
But the problem after closing is the complement unlock of the same number has not been solved yet despite changing the variable from fixed to variable
You can explain on the same project what you mean -
Could you please share the las version of your project again?
-
@roar I want it after the deals are closed. The counting starts again from 0.01 I do not want it when opened, it completes closed positions
-
-
That's exactly the same initial project. Could you please share the latest version?
-
@l-andorrà said in how Activate one deal in direction without no trade?:
That's exactly the same initial project. Could you please share the latest version?
I did not understand your intention, this project is the main problem in the variables. I expect I want to start again after closing the deals and do not complete the opening from the end of the last deal.
-
-
@l-andorrà I AM SORRY https://fxdreema.com/shared/tuqNotP3d
-
The problem has been resolved. Thank you everyone