Latest posts made by alessandromagno
-
open/close at EMAposted in Questions & Answers
Hi guys, I'm struggling to undersatnd why this logic fails. I create a simply EA which buys only, when price crosses above from below the EMA (I'm using "TEMA" indicator) plus 1 tick. It closes position when price crosses the EMA from above to below.
As the results I got some errors like these


The position is opened but doesn't closes anytime it get back to EMA.
here is the logic in which I tried 2 options to close the position, but both gave me the same errors
Is there anything wrong?
-
Working with custom indicator HELP!posted in Questions & Answers
Re: Get Custom indicator values
Hi Miro, i'm able to work with custom indicator as per your guide. But, in the indicator you attached in the other thread in the title, for example, the arrows on the chart (green and red arrows plus pink and light blue stars) haven't the proper colors in the buffers menu, because they are under parameter section.
So, if I want create an EA to trade when a green arrow appears, how to set the correct output since is not selectable under "output buffer"?

Regards
-
How to set BE based on fibo?posted in Questions & Answers
Hi guys, i appreciate your help in this trial.
Once a BUY trade is open i draw (manually) fibonacci retracements from high to low of previous candle (viceversa if SELL). My values are:
0 - low candle id 1
100 - high candle id 1
115 - break even at 15% range candle id 1
150 - 50% range candle id 1
200 - 1 time range candle id 1Let's say the BUY trade opens, at candle 0, the initial SL is at 0 fibo (low bull candle id 1) and TP at 200 fibo. If the price hit 150 level, then i need the EA to move the SL from 0 to 115 (BE). Nothing else.
What i did is to set a formula to calculate the range candle id 1 into variables. SL and TP give the levels i look for, but i need help for the BE.
Here is my shared trial https://fxdreema.com/shared/bg1KpJSJcThe problem i have is the "pips away from open" block, since fibo is calculate on previous high, but the open price could be much less if the candle 1 has a big upper wick!
So i cannot know how to calculate the rest of blocks.Can anyone help me pls?
Regards -
RE: I thoght it was correct, instead...what's wrong??posted in Questions & Answers
@alessandromagno
Sorry the monday filter it was my fault because it wasn't updated.
I apologize for this.I hope to find a solution for the first issue
-
RE: I thoght it was correct, instead...what's wrong??posted in Questions & Answers
@fxdreema
Hi man, thx for the reply. I need the ask price because of the BUY block.
Also i cannot test it since in tester there's no option about the variable spread i can have in some night hours. Then the test would be useless for my problem.It simply hasn't to BUY if the ask is above the previous candle close...
Moreover i set at the top of the blocks "weekday filter" where i want the EA to trade only in some days of the week.


But it took a trade on monday (today) regardless of this filter.
Since i'm a newbie i'm sure the errors are mine and not some bugs, btw i don't know where they are

-
RE: I thoght it was correct, instead...what's wrong??posted in Questions & Answers
@roar
Hi roar, is what i hope for the ask price to be lower than the open price!
Indeed i don't want it to open any BUY trade if is above...
Then i really don't know why.Maybe because of slippage but at such hours of the night i think the spread only is the enemy. Then i don't trust so much in slippage problem in such low volatility period
-
I thoght it was correct, instead...what's wrong??posted in Questions & Answers
Hi everyone.
I'm testing an EA where it buys when, first, the condition 1 is met.
So, if current Ask, increased by gap in pips (a value in pips i set under condition; in this case i set it to 1) is above previous close, then do nothing; otherwise go to the condition 2...then BUY!
But here i attach the trade it took today:

Due to the strong spread the ask price was above the previous candle close at the time it opened a buy position. The previous condition 1, then, was true in my thoughts, so why it went to the condition 2 and moreover it arrived at the BUY??