@l-andorrà Hello my friend.
My idea would be to show on the graph only the value that was most negative.
Every time the value is negative and it is a value greater than the previous one, example:
I'm negative at -10 $ to 1 tick ago
On the next tick I was negative at -20 $
So these -20 $ should remain fixed until it is exceeded, for a larger amount, for example -30 $ or -40 $ and so on.
Posts made by Ontrade
-
RE: Monitor and display value fluctuations on the graph.posted in Questions & Answers
-
RE: Monitor and display value fluctuations on the graph.posted in Questions & Answers
@l-andorrà I did not get any indicator that provides me with this information.
I thought about doing the following, but I don't know how to do this in the fxdreema blocks.- Record the value of the gain / loss that is fluctuating at all times in a variable.
- Save this value in another variable as an old value.
- Create a condition to compare if the new value is more negative than the old one, if it is, it prints or updates the last value on the screen.
@roar any idea about this?
-
Monitor and display value fluctuations on the graph.posted in Questions & Answers
Hello friends I want to find out what was the highest Drawdown value that my EA reached at all times, but I want this to be displayed in real time when my EA is in backtest or demo and real account.
For example, I have eurusd, usdchf and nzduse negative at -11 $ and some seconds it is negative at 20 $ so I want my EA to display a message saying on the graph.
The maximum amount your account is negative is $ 20
The same I would like to do for earnings as well. -
RE: Do not use take profit, use a profit target of 2 $ for all assets.posted in Questions & Answers
thanks my friend, work fine now for me.
-
Do not use take profit, use a profit target of 2 $ for all assets.posted in Questions & Answers
My EA opens several orders because it works with hedge (martingale) for several pairs. EURUSD, USDCHF, USDJPY and others.
I would like the take profit of the first order to be closed only if it reaches a profit of 2 $, I do not want to define this in points, I want to define this in $.
As it is multiparing, I am having to create a buy and sell block and manually define points for each asset separately, this makes me create many blocks.Is there any way I can make this happen?
Only the first order 0.01 of a given pair I need to close with 2 $, the orders opened by hedge (martingale) are already working with the average price. -
RE: Creation of virtual balance withdrawal for backtests.posted in Questions & Answers
@roar I am trying to simulate withdrawals, because some robots that I develop end up at the end of the backtest showing that they broke the account, but the backtest just ended and he had open orders and this makes the backtest not end with a positive balance.
Is there any other way around it?
-
RE: Creation of virtual balance withdrawal for backtests.posted in Questions & Answers
@roar Hello my friend,
Can you help me create a condition for him to withdraw 50 $ whenever this profit happens?
example:- I put the EA on the chart.
- He obtained the balance of $ 10,000
- The EA started trading and made a $ 50 profit, then a withdrawal is immediately made, making the Balance $ 10,000 again and this is happening repeatedly.
This is for backtests purposes, I know that compound interest is coming but I want to try to see how many times it would be possible to withdraw a balance of 50 $ with the same strategy.
-
RE: VOLUME VS CANDLE identifyposted in Questions & Answers
@roar My friend, how do I create this condition using the ATR, you taught me using Volume, but ATR seems to be the best option, can you help me?
-
RE: Get better (spread) valuesposted in Questions & Answers
@roar said in Get better (spread) values:
@ontrade yes, just put "set current market for next blocks" before your strategy
is there a specific block for this?
-
Error "Array out of range in "posted in Questions & Answers
Friends I am getting the error "array out of range in".
When this error occurs it removes the EA from the screen.
Would anyone know how to tell me how to fix it?
Follow the screen print.
-
RE: Get better (spread) valuesposted in Questions & Answers
@roar Thank you my friend.
I have already found and I am setting up a personalized spread table for each currency I intend to trade with EA.
Could you help me with a few more things?The first question is:
For example, let's say that I want to use the same strategy (crossing 2 averages) in 10 different pairs within the same metatrader 5, I must use the same robot in each currency, or I can create a multipares EA and it in one screen check if the crossing rules happened in the other 9 currencies and open the independent orders of placing the EA in the other screens?
If this is possible, how can I do it? -
Get better (spread) valuesposted in Questions & Answers
Hello my friends, I would like to know how I can create an EA, or else do to know the best values of (Spread).
I don't know how to make a condition to generate this history.
My idea would be to create an EA and use it in the backtest or demo account.For example:
This EA would monitor 24 hours and record the values that the spread reached during 24 hours in the period for example 1 week.Record the minimum spread value reached.
Record the maximum value of (spread) reached.Getting the minimum and maximum values example:
EURUSD
(spread) minimum value 6
(spread) maximum value 50
So let's say we have an average, which would be the value of (spread) 30
If the value of (spread) is greater than (30) it means that the spread of that particular pair is above the average (high or large).
If the value of (spread) is less than (30) it means that the spread of that particular pair is below the average (low or small).Based on this, we can then obtain and work with the strategies based on the spread values that best suit each strategy.
-
Slow Backtest Executionposted in Questions & Answers
Unfortunately I cannot share the project.
But visually looking can someone give me tips on how to minimize the impact of slowness I'm having on backtests?
I tried to use a single "once per bar" block to meet the entire strategy, but it didn't change the backtest speed in any way.
-
RE: Condition Sunflower indicator.posted in Questions & Answers
@ontrade @CDWilder1 you too, thanks
-
RE: Condition Sunflower indicator.posted in Questions & Answers
@cdwilder1 said in Condition Sunflower indicator.:
that post Roar linked to was one where I'd posed a question and it was very very productive to my understanding in the area of loops and stuff. If it's something that's new to you, I second Roar's recommendation and suggest you go check out our conversation.
Thank you my friends, @roar @
I am conducting tests, you are very attentive and intelligent, congratulations on all the help on this forum.
-
When the candle or the price touches the line.posted in Questions & Answers
how can I create a condition for when the candle touches the line it opens a purchase? -
Condition Sunflower indicator.posted in Questions & Answers
Hello Friend @roar ,
Can you help me try to find the best way for me to get a condition?
In the image I'm using an indicator that displays a sunflower, 3 lines, the red, blue and white dotted lines.
The condition that I want to create is that when the Sunflower appears then it is necessary to check if any of the previous candles crossed the blue line down.
When this is detected, my robot should buy immediately.
I've already managed to map the indicators and buffers, but I'm not getting the rule right because they repaint.
Can you help me with any example of how to do this? -
RE: Correct Stop Trailling using $posted in Questions & Answers
@roar

ehhehe
I'm sorry to be so clumsy with these blocks.
What I understood is that there is not the same configuration for the entire block, start and step can only be configured with pips.
I would just like my EA to guarantee my $ 5 profit at $ 5 each time he walks $ 10 profit.
