DAILY TARGET
-
HOW CAN I SET MY EA TO PAUSE AFTER A PARTICULAR PROFIT FOR A DAY AND RESUME BACK NEXT DAY ?
-
@kestra you can do this with check profit. if check profit is successful it can change a variable to turn of trading. You need a condition before your trading block to check if trading is allowed.
-
PLS SHOW ME THE CONNECTIONS SO I CAN JUST ADD IT TO MY EA.
-
@kestra Siggi is right, but you will also need a a variable controling when a new day begins and if target was reached within that same day. This is an example:
https://fxdreema.com/shared/M61e4m6Pc
Bloc number 3 should be positioned on top you your launching conditions. Otherwise the EA will not be able to know when to top opening new trades once target was reached.
-
THANK YOU VERY MUCH
-
@kestra You're welcome.
-
@kestra I don't get this. Why quit when there may be more opportunities. Your trading should only be limited to your time filter not profit. If you can make a million today why entertain the option of coming back to risk capital the next day and possibly go broke? You should be aggressive within your parameters. If you're outside the liquidity period then by all means don't trade but outside of that I don't undertand the use of a profit target for the account. I think this should be applied to an account that's headed for a margin call not one that's reeling in the cash.
-
@jzfusion YOU ARE RIGHT BUT IT DEPENDS ON ONES STRATEGY. IF ONES STRATEGY CANNOT WITHSTAND CHOPPY MARKETS , THEREBY GENERATING LOTS OF SIGNALS WHICH MAY RESULT IN LOSSES, THEN I THINK ITS BETTER TO JUST HAVE A TARGET WHICH IS 80% SURE. THOUGH I ALREADY HAVE A EA THAT STAYS IN THE MARKET ALWAYS AND EVERYDAY BUT I NEED TRENDY MARKET WITH HIGH VOLATILITY AND LESS CHOPPY NO MATTER THE TIME FRAME, SO I CAN JUST RIDE THROUGH!.
-
@kestra I think you've given me an idea. I'm thinking about having a filter for some days such as Friday. So for example on Fridays I could lower the lot sizes or even change the options for money mangement using the Weekday filter. I think @l-andorrà has an example in his tutorial system where he filters for Fridays and negative swap etc.
-
@l-andorrà Please help me out here. Which one suits what I'm trying to do? I want to allow a certain condition for Fridays only and I'm using buy/sell as an example.
Which one will apply here?

Does allow go to the red and reject to the yellow?
-
@jzfusion The first configuration will open buys on Friday only and sells the rest of days. The second configuration is exactly the opposite. The yellow output means 'if the condition of the block is false, do the following...'
-
l'andorrà DO YOU MEAN I SHOULD CONNECT IT LIKE THIS ?

-
@l-andorrà DO YOU MEAN I SHOULD CONNECT IT LIKE THAT ?
-
@kestra Can you please share the link instead of showing the screenshot? I need to see inside those blocks to be sure.
-
-
@l-andorrà ITS BROUGHT OUT THIS ERROR CODE AND WAS ON ABLE TO COMPILE !

-
@l-andorrà I HAVE RESOLVED THE ERROR!.
-
@kestra Good for you!. Congrats.

-
@l-andorrà THANK YOU VERY MUCH.
PLS DON'T BE ANNOYED WITH ME COS THIS MIGHT TAKE YOUR TIME, I STILL HAVE A QUESTION.
PLEASE I WANT YOU TO EXPLAIN EACH OF THE CONDITION BLOCKS IN RELATION TO ONE ANOTHER ESPECIALLY THE LEFT AND RIGHT OPERAND IN THE CONDITION BLOCK 3, ALSO THE MODIFY VARIABLES SETTINGS, WHAT IT TRANSLATES TO AND HOW EACH RELATES TO THE OTHER. I WANT TO BE ABLE TO WORK AROUND IT!. THANK YOU VERY MUCH.
https://fxdreema.com/shared/M61e4m6Pc -
@kestra Ok. Let move step by step. The condition block 3 is the condition telling your EA that trades can be open today. I created a variable called 'activate' that can have just two values, true and false. I decided that it should be true for the trades to be open. Please remember that thsi block is supposed to be on top af all your blocks deciding when a buy or a sell are open. If this condition move to false, no more trades will be open.
And that is what block number 6 is doing. Once the EA gets as much money as you want, all trades are closed by block 5 and then the variable is changed to false again. It will not be true again until tomorrow (Block 1).
Do you understand do far?