@jstap why? Especially since I have a condition that says candle ID 1 close has to be higher than ID 2 close?
Posts made by SirLuk
-
RE: Draw line at highest candle body closeposted in Questions & Answers
-
RE: Draw line at highest candle body closeposted in Questions & Answers
@jstap @l-andorrà oh and the mistake I'm getting you can see in the pic...the line was originally at the close of candle ID 2 (green with long wick) and then moved down to the close of ID 1 once that candle closed. That's what I don't get...my first condition says candle ID 1 close > ID 2 close. Don't know why the line should move.

-
RE: Draw line at highest candle body closeposted in Questions & Answers
@jstap are you able to see my variables? Both variables used start out with the value 2. So if we just look at the right hand side of the tree in https://fxdreema.com/shared/WttYNtlZc the first condition should activate if the candle ID 1 close is higher than ID 2 close...then the formula keeps adding 1 to the variable and runs the condition again. Once the variable hits 80...a line should be drawn at the candle close.
In short...a line should be drawn at the highest closing price of the last 80 candles. I really can't see where I made a mistake...
@l-andorrà any ideas from you?
Appreciate your help, guys.
-
RE: Draw line at highest candle body closeposted in Questions & Answers
@jstap this shouldn't happen. The pink line should stay at the close of the highest green candle!

-
RE: Draw line at highest candle body closeposted in Questions & Answers
but @jstap, why is this not working? https://fxdreema.com/shared/WttYNtlZc
It works when a bull candle makes a new high, but when a bear candle follows, the line adjusts to the close of said bear candle. It shouldn't according to my plan. If it's not a new high (looking back 80 bars), the line should not adjust...
-
RE: Draw line at highest candle body closeposted in Questions & Answers
Thanks @jstap, I actually used the same loop you suggested in my previous question and that worked fine. Appreciate your help.
-
Draw line at highest candle body closeposted in Questions & Answers
Hi guys, can anyone help with this? So what I want is the following: If the body of candle ID 1 closes higher than the bodies of IDs 2-80, I want a line drawn at the high of the body. This horizontal line (A no, B yes) will of course adjust, if following candle bodies have higher highs. I tried doing it with market properties - highest price (candle period), but it's not what I want, since it's the body of the candle that I'm looking for and not the wicks.
-
RE: Setup within the next 40 barsposted in Questions & Answers
Thanks, I'll have a look if I can work it out.
-
RE: Setup within the next 40 barsposted in Questions & Answers
Thanks @jstap, this part worked fine. Any suggestions about my second question with the 10 and 15 EMA?
-
RE: Setup within the next 40 barsposted in Questions & Answers
Also I would like to know how to do this is in a easy way: I want a condition the says "in the last 40 bars at least once a candle crossed and closed beyond the 10 and 15 EMA." How do I do that?
-
Setup within the next 40 barsposted in Questions & Answers
Hi, how do I do this? I have a condition and once it's met, a second condition has to be met within 40 bars or the whole setup is invalid. Any suggestions? Thanks in advance.
-
RE: Need help for price from last candleposted in Questions & Answers
There are always other options. Why don't you post a shared version of your EA, then it's easier to see.
-
RE: Need help for price from last candleposted in Questions & Answers
Yes. The values of this condition block always changes...you will not get a fixed stop loss like this because everytime you have a new bar, ID 1 becomes ID 2 and the former ID 0 becomes ID 1. You should use the method I suggested. You can still activated. Explain what you mean about activate it?
-
RE: Buy and Sell evert candle !posted in Questions & Answers
And what starts the buying? Do you make the first buy manually?
-
RE: Need help for price from last candleposted in Questions & Answers
That's no problem with this option as well.
-
RE: Test whether x candles have been touching moving average line in a rowposted in Questions & Answers
Use normal condition blocks, like this:

One of these blocks has to pass to get to the next two blocks with the ID 2.
-
RE: Test whether x candles have been touching moving average line in a rowposted in Questions & Answers
You could do two condition blocks per candle…lets say x is 4 candles. So you need 8 condition blocks, 2 per ID. One block is candle ID 1 crosses above EMA ID 1, one block is same but „crosses below“. Then you do that for each candle in the past you want checked. Then connect the blocks and put signal at the end.
-
RE: Whydo I GET MULTIPLE BUY/SELL SIGNALS IN ONE CANDLE?posted in Questions & Answers
@mnarhari could you share your EA so we can see what the problem is? Probably because a candle contains many ticks and each tick can trigger the signal.
-
RE: Please suggest where my settings are wrong. Condition MA working skip a procesposted in Questions & Answers
Just looking at it, it might be a problem with the candle ID...I know I often have problems when I use ID 0, which is the current candle together with candle close...seems like that contradicts itself since as soon as you have the candle close, it becomes ID 1. Try changing the IDs in the condition blocks to 1 instead of leaving them empty and let me know if it works.