"Once per bar"?
Posts made by fxDreema
-
RE: how can i create a condition that activates trades when profit is under 1000 and deactivates these when above 1000 per day?posted in Questions & Answers
100 apples?
If you mean money, then there is a block Check profit (period of time) -
Cryptocurrencies are exploding these daysposted in General Discussions
I know that this is Forex-related forum, but just take a look at the cryptocurrencies these days - they are exploding and I think this is very interesting.
In the Forex world we have regular government currencies - USD, EUR and so on. All of them are controlled by some shadow entities (for example FED for US Dollars) and the value of these currencies goes up (not really) or down depending on the mood of these shadow entities. Even the prices of gold and silver are artificially suppressed. So, in Forex we may think that we are trading, but we are in fact betting in this huge virtual casino.
Cryptocurrencies - take a look at their performance - https://coinmarketcap.com/ (those small charts). Bitcoin doubled in value in few months, Ethereum doubled in a week, ZCash doubled in few hours. And I think that this is only the beginning, because most of the people in the world still don't understand cryptocurrencies, but one by one they will, and the value can only go up and up.
So, I can suggest to anyone to take a look at the cryptocurrencies. If you still don't understand them, take some time to learn them. And get some, just in case.
-
RE: indicator integrationposted in Questions & Answers
Well, indicators are separate projects for a reason. Their code is similar to Expert Advisors, but also different. Indicators produce array of values (aka buffers) and those values are translated in the chart as lines, arrows, histograms or something similar. EAs can draw some objects, but not those kind of lines that indicators can. Indicators are also normally designed in a way to not recalculate the same data over and over again, which is tricky to do in an EA.
-
RE: When Custom Indicator color is blue : BUY, When Custom indicator color is red : SELLposted in Questions & Answers
Depends on what the indicator is. Blue/red what? Arrows, lines? But the color does not matter anyway. What matters is the value in the buffers of the indicators. Normally you should have 2 separate buffers for both lines (or arrows, whatever it is). And when the value in the "blue" buffer is EMPTY_VALUE, then you don't see line, otherwise if the value is like 1.2345 you see the line.
You can use "Condition" and just compare the value of the buffer with > 0. This is because "Condition" block does not pass if either value is EMPTY_VALUE, so the block would not pass if the buffer is "invisible".
Or, there are blocks "Indicator is visible" or even "Indicator appear".
Maybe you will also need to use "Once per bar" - https://fxdreema.com/demo/mt4-once-per-bar
-
RE: How to Fix Critical Runtime Error 503 in Ontick Functionposted in Questions & Answers
Well, it's strange if PipValue() returns 0. What symbol are you using now, tcanuto?

-
RE: How to close trade at close price of bar~posted in Questions & Answers
Once per bar -> Close trades?
-
RE: Custom indicatorposted in Questions & Answers
Arrow disappear and then what? Do you want to buy or sell 2 candles after the latest candle with arrow on it? Because then you can just check whether there is an arrow on candle 2.
Where does that error appear? It sounds familiar to me, but not really.
-
RE: How to create a phone notification based on lot Size?posted in Questions & Answers
In block 2 you selected "(in loop).....". Select the purple option "(on Trade) Event Data". And then you can select the same in the notification block, if you want.
-
RE: Can you use Heiken-Ashi candles as normal candles?posted in Questions & Answers
Somewhere in Condition block you can find Heiken-Ashi indicator. This one is listed with the built-in indicators, but uses external .mq4 file (which comes with MetaTrader anyway). I programmed this, because otherwise it's tricky to work with the buffers from this indicator
-
RE: Comment text colorposted in Questions & Answers
If you create that text with "Draw Text", then there is option for the color somewhere. Look at the bottom and click on "Standard properties"
-
RE: Tester: Cannot load Experts/ XXXposted in Questions & Answers
So, the compiler on the server is too new?
-
RE: Lock expert to account / brokerposted in Questions & Answers
When you have the expert as .ex4 file, this file is secured. So you can have everything in this file. For example, you can check under "on Init" for that account and terminate the EA. In "Condition" there is Account option with some account and broker data that can be checked. If the check fails you can use that "Terminate" block to stop the EA.
-
RE: Is there a template like this in FxDreema?posted in Questions & Answers
I think you need to check the type of the last closed trade. If it was Buy - then check Sell conditions and eventually open Sell. If it was Sell - then wait to Buy. There is a block "Check type (last closed)" to check that type.
-
RE: EA switch ON or OFFposted in General Discussions
The normal way is to just remove it from the chart or add it. Or use this wide button in MetaTrader. It can also be programmed to react on a button... but really?...
-
RE: Pending Orders: Expiration Errorposted in Bug Reports
Here you need to specify Time, not price level. The expiration is on time. And what is your idea for a pending order to expire after some pips, you want to delete the order if the price goes X pips away from the order? If this is the case, you can try something like this: http://prntscr.com/f46ly2
-
RE: Modify Stop Loss and Trailing Stop Questionposted in Questions & Answers
So you want to do something on the current trade only, in "on Trade". Try this: http://prntscr.com/f46i7g
But the Trailing stop block is also there to modify SL, so I don't know if these blocks under "in Trade" are needed.
For the Market settings I think it's better to set this for Manual trades only.