Subtracting / Adding pip to price
-
Hi
I would like to buy when the Bid/Price has moved 15 pip above the open price (using Daily bar charts).
Like : (Current Bid price) - (Current bar open Price) > 15 Pip.
the " - " is deduction/minus sign.
This is the same as buying when the price has passed 15 pip above the opening price.Or sell when the Bid/Price has moved 15 pip below the open price.
Like : (Current bar open Price) - (Current Bid price) > 15 Pip.
the " - " is deduction/minus sign.
This is the same as selling when the price has passed 15 pip below the opening price. -
In "Condition" block on many places you will find "Adjust". Click on it and an input field will appear. Write "+15pips" to add 15 pips or "-15pips" to remove. The word "pips" will be replaced with a proper piece of code, so it will work that way.
You can also add/remove value like 0.0015. -
Hi
Thank you, this worked fine.
I have a with "Spread Filter" block and how to use it.I am using a five digit broker, 0.00001, and have therefore set the point format to 0.00001
-
If I wish to have a maximum spread of 0.00004 (using a five digit broker), what should I enter in the max spread
box, 4 or 40 ? And should this be entered in as "4pips" and "40pips" or without the pips as just "4" and "40". -
And where should I place the "Spread Filter" block ? Before the "Buy" block or at the top ?
I made an EA, but when I add a "Spread Filter" block before the buy block the EA stop working.
So I am getting the "Spread Filter" setting / location wrong. -
-
Hi again.
I think I understand how the "Spread Filter" block works now.
-
If I want max spread to be 0.00004 I enter 4 in the max spread field (point format is 0.00001 in this example).
-
I place the "Spread Filter" block just before the buy/sell block. So it is the block before/next to buy or sell block.
Can you pleas say if my understanding of point 1 and 2 is correct?
Something else I would like to ask you.
When trying to trade in time frame of less than a second / on tick by tick base (1 minute chart), sometimes this happen with this message from MT4:"the trade was successfully opened but failed to modify the stop loss/take profit".
So the trade was opened successfully, but it is running without stop loss / take profit.
[I think this happens because I set small profit levels as 0.00009 and the price/ticks move too fast to implement stop loss/ take profit as well]. But this happens maybe in 1 out of 25 trades.Are there any blocks I can use to close open/running trades that do not have stop loss/take profit level (failed to create) ? Because the trade will remain open until closed (possible huge losses) and no other trade can be opened if I use the "If no trade is running" block in the EA.
-
-
1 pip is equal to 0.0001 now and before. No matter if your broker uses 0.00001 digits or no, fxDreema works in 0.0001 format by default. But if you want to change it, go to "Options -> Current project options" and change "Point format".
0.00009 equals to 0.9 pips, which is pretty small and that's why you get that error.
There is a "Close each trade" block - blue in color. -
I know what a pip is.

You wrote "pips" next to the field I was talking about, that was the point. Seems you missed it although

You are a genius alright

You might want to remove the 'pips' if you don't want to get confused.