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??
-
% profit for all trades...posted in Questions & Answers
Hi guys i'm trying to make my EA to close all open trades once the total profit amount in % of the money account reaches 1 or 2 or 3%.
Let's say I have set the percentage at 2%. I have an account of 1000, my floating profit is +20 (equity 1020), 5 open trades. Then my EA must closes all 5 positions, waiting for the next condition to start again.
In check profit unrealized I see there's no option about % to close the trades. Nor in TP option under buy/sell blocks. So i tried with: bucket of trades (blue box) -> check profit (magenta box)->close trades

But i see there's something wrong because it closed my unique trade at 0.42 cents instead of waiting for 20$.
What's wrong: the method or "2" i put in the field?Thanks
-
RE: Sorry guys, where am I wrong???posted in Questions & Answers
Yes indeed i didn't think about visual tester!
Another question, pls, just to understand the logic of builder.I learnt how to draw arrow, so i'm moving on next step. Let's say after a buy arrow i want a "stop" arrow.
(I'm trying with envelope bands.)
My thoughts of why i connected blocks like this is: after and only after a buy arrow draw a stop arrow once the second block condition is met (fast lower envelope band crosses up the slower envelope lower band). Viceversa for sell.
But no stop arrows appear. I got only the entry arrows...How to correctly connect theme? -
RE: Sorry guys, where am I wrong???posted in Questions & Answers
Thank you very much my friend! now i got 1 arrow!!!
Anyway i read somewhere a your post where you suggested to move from "on tick" to "on int" in order too see also the past signals...maybe i'm wrong.
BUT: how can i get past signals also? -
Sorry guys, where am I wrong???posted in Questions & Answers
Hi all, i'm trying to understand how this beautiful builder works. I'm training with simple stochs and arrows.
here is what i created but no arrow appears
https://fxdreema.com/shared/9pXkp0LlbThe logic is:
UP arrow when we are above 150 MA and 3 stochs main line are under 10.
SELL arrow when we are below 150 MA and 3 stochs main line are over 90.I'm "on int" field to see also the past arrows.
Where am I wrong?
Thank you -
Help for indicator, please...posted in Questions & Answers
Hi guys i'm building an indicator which draws a buy arrow at the open of the third candle when:
- first candle is bull, no matter the size in pips
- second candle is bull, no matter the size in pips
- body 2° candle > body 1° candle
- both wicks of second candle are no more than 20% of the total body size
Viceversa for SELL.
What i'm doing is here https://fxdreema.com/shared/AjqJMxdNc but it doesn't draw anything...
From my side, what i call first candle is ID 2 and second candle is ID 1 (candle 3 is the current which has ID=0, i hope to be right). Also, when i started the project i selected "expert advisor". Am I doing something wrong?Thank you
-
RE: How to hourly enter?...posted in Questions & Answers
thank you guys for the help. I'll give a try on both to see which performs better!
-
RE: How to hourly enter?...posted in Questions & Answers
@dieter
Man with that exit method it opens and close the trades at the same time, not at the end of candle...meanwhile i'm trying but with poor results. Here you can see what i'm building, but it only sometimes enters a trade at the beginnings, and most of the times it closes after many candles
https://fxdreema.com/shared/GOj9xqond
i'm struggling to find what is going wrong. You can see many start not at the beginning and many close after some candles...

-
RE: How to hourly enter?...posted in Questions & Answers
Thanks man. Now for the closing trade at the end of the candle what should i do?
-
How to hourly enter?...posted in Questions & Answers
Hi guys i'm very newbie here. I like a lot fxdreema but i have to learn.
I'm trying to build a very simple EA which opens BUY orders at the beginning of new candle on H1 at 4:00, 5:00, 15:00, 17:00, 20:00 GMT; and SELL at 0:00, 1:00, 3:00, 7:00, 21:00, 23:00 GMT. No TP, no SL, just exit at the end of the candle.Is it right if i use 2 hour filter function for "buy now" (because each allows only 4 periods when i need 5), and 2 for "sell now"?

Thanks