@l-andorrà Yes, I should have mentioned that. I need the EA to self detect which symbol positions have been opened on and how many positions have been opened on the various symbols..
Posts made by PipTheRipper
-
RE: max number of trades per symbolposted in Questions & Answers
-
max number of trades per symbolposted in Questions & Answers
Hi, does anyone know how to crate a rule to only allow a set number of positions on a specific symbol? So If I set the max number of positions per symbol to 3, and i have 1 open position on eurusd + 3 open positions on gbpusd, then its ok to open new trades on all other symbols than gbpusd, as it currently has 3 open positions on that symbol.. Hope my question is clear.
-
RE: drawing horizontal lineposted in Questions & Answers
@tipsywisdom Great, Thanks! Will try it out. Cheers
-
RE: atr based break outposted in Questions & Answers
@jstap still the same thing. If you look at the screen shot below.
The comment in the top left corner is the ATR value multiplied by 2.
The comment in the bottom left corner is the ATR (multiplied by 2) in pips.
The comment in the bottom right corner is the candle size (which is bigger than the ATR multiplied)I really do not understand what is happening..
here is the project link updated https://fxdreema.com/shared/vBmhTsxGb

-
RE: atr based break outposted in Questions & Answers
@jstap sorry about that. I had already corrected this in my main project. Didnt realize the settings were still wrong in this shared project. Here is another link https://fxdreema.com/shared/cPLFW1U8d
-
RE: atr based break outposted in Questions & Answers
@l-andorrà Thanks for your reply! I tried that, but when using "price fraction" the ea opens trades at any time as long as there is no other trade open. So it does not follow the condition block..
-
RE: atr based break outposted in Questions & Answers
@jstap here is the link. Thanks! https://fxdreema.com/shared/Isch6Fofd
-
RE: atr based break outposted in Questions & Answers
In the screenshots you can see what i mean.
The comment in lower left corner is the ATR in pips x 2.
The comment in the lower right corner is the candle pipsize.In the first example you see the ea opens a trade as the candle size is bigger than ATRx2
In the second example the candle is bigger than ATRx2, but no trade is opened..
!

-
RE: atr based break outposted in Questions & Answers
@jstap Thanks for the code. very usefull! In my case, I basically have done the same(atr * 10000) for a 5 digit currency/broker. Im using icmarkets and testing on EURUSD. I printed comments and I can see that the variables are working fine. I just cant understand why sometimes, even if the "buy now" conditions are met i.e -> candle is larger than 2xATR(in pips) the ea does not open any trades.. Any ideas?
-
atr based break outposted in Questions & Answers
Hi, im trying to make a simple ea that buys when a bull candle has a total pip size bigger than 2x ATR.
1: I use a formula block to get the atr value and multiply it by 2. I put the output value into the variable "atr"
2: I use a formula block to multiply the vairable "atr" with 10000 to convert it into a pip value. I put this output into the variable "atr_multiplied".
3: I set a condition that if candle 1 has a total pipsize larger than "atr_multiplied", then buy now.Something is not working properly. When the ea opens trades, the rules are met. But sometimes the rules are met, but no postions are opened, and i dont understand why.
https://fxdreema.com/shared/Isch6Fofd

-
flag reset not workingposted in Questions & Answers
Hi, Im trying to make the following.
1: When fast MA cosses above slow MA -> set "uptrend-flag" to true.
2: When "uptrend-flag" = true -> place pending order.
3: once pending order has been closed-> set "uptrend-flag" to false.It seems to work through the first cycle, but once the trend has gone through a down trend and then to an uptrend again, it seems as if the "uptrend-flag" does not get reset to true.
Can anyone see what is wrong?
-
RE: check distance moduleposted in Questions & Answers
feeling pretty dumb:/ just noticed I hadn't changed the value from numeric to pips:)))) THANK YOU FOR ALL YOUR HELP @jstap . Working with flags opens new possibilities I was not aware of!
-
RE: check distance moduleposted in Questions & Answers
I'm assuming that the value in the "check distance" block is measured in pips. Is this incorrect?

-
RE: check distance moduleposted in Questions & Answers
Thank you so much for your help! However, I still cannot get the EA to open any orders. If I put a negative number as the value in the "check distance" block, the EA opens orders, but does of course open orders no mater the distance to "zigzag low ID 1".. I relly do not understand why. Do you see what is going on? https://fxdreema.com/shared/Gjv12yhhd
-
RE: check distance moduleposted in Questions & Answers
@jstap Never worked with flags before. I tried to do like this https://fxdreema.com/shared/VU9OTd7W but also doesn't work. You see what I do wrong?

-
RE: check distance moduleposted in Questions & Answers
Here is a link to the project https://fxdreema.com/shared/6zzw4OjQc
-
check distance moduleposted in Questions & Answers
I cant get the check distance block to work as intended.
I use the ZigZag indicator to place a pending order at "ZigZag Low ID 1", but I want the distance between the current price and "ZigZag Low ID 1" to be X or more pips before placing the order.
The EA does not open any pending orders with this block active. Can anyone spot what I am doing wrong?

-
RE: no pending orders nearbyposted in Questions & Answers
Sorry for the late reply. No the distance is not always the same. The pending orders are placed at swing highs or swing lows. I want to create a rule that says, "if there is a Pending order x or less pips above or below the price level where the ea wants to place the next pending order, then do not place new pending order. I hope its clear what im trying to do?
-
no pending orders nearbyposted in Questions & Answers
Hi, im building a system that places pending orders at specific levels. I only want to place new pending orders above or below existing pending orders if the distance is more than x pips between the new and any already existing pending order. The block called "no pending order nearby" does not seem to work for this requirment.
My idea is to store the price value of pending orders into variables, and make conditions that say that the pips distance has to be X or larger.
A few questions:
1: Is this a good way of doing it, or is there a better way?
2: How can i store the price values of opened pending orders in a variable?
3: What if I have 3 or 4 pending orders. Will I need to save each price value into its own variable?Cheers