@tipsywisdom actually, the 2nd option will never work. You must store equity as a variable oninit. otherwise, equity will never fall below equity because its always comparing right now to right now.
Posts made by TipsyWisdom
-
RE: Close trade when MAX DD is reachedposted in Questions & Answers
-
RE: How to exit @ drawdown %posted in Questions & Answers
drawdown of starting balance would be balance below or equal to BALANCE *0.90 (10%DD)
-
RE: using EA for different assetsposted in Questions & Answers
@tipsywisdom you could also just use that 1 block and put all the pairs in it, separated by a comma.
-
RE: using EA for different assetsposted in Questions & Answers
@jstap said in using EA for different assets:
@andrewfrank Set market for next blocks, is in the controlling blocks section.
exactly as he said, to have full control of all the pairs you could put a separate pair in a different "Set Market Symbol" Block, and have that be the start of each thing you want the pairs to do.
-
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
@fxdreema care to add this to the standard list of "Various Signals" block Sir. Please?
-
RE: On trade not working correctlyposted in Bug Reports
@criptofuture said in On trade not working correctly:
Allegedly they work exactly the same, the thing is that when using On Tick it consumes a lot of resources, for example when backtesting usually 1 year takes 2 hours and a half, now is running 13 hours already and its on the 4th month, so we could assume it will take around 60 hours for the same backtest.
simplest solution, run everything ontick, under a Once Per Bar, under a "Set Current Timeframe" block. Now you have full bar control.
-
RE: On trade not working correctlyposted in Bug Reports
@criptofuture I would just use it where it works then. If it isn't working on 1 section, programmatically or logically it must not be meant for that area.
Perhaps there are specific coded style blocks that work only in that section?
-
RE: Count number of touches on a support or resistanceposted in Questions & Answers
thats one of those things that programmers dream to do when they can't trade.
Its better to know how to trade and identify those zones that are frequently revisited in other ways, rather than using a counter on the smallest scale...if that makes sense?
-
RE: Count number of touches on a support or resistanceposted in Questions & Answers
haha....you would logically have to count EVERY touch and retouch of all candles in order to recall that info. Good luck.
-
RE: Close trade when MAX DD is reachedposted in Questions & Answers

heres 2 theoretical ways to terminate, on MT5
-
RE: FxDreema Discord Server?posted in General Discussions
@tipsywisdom and in no way is the server officially, or unofficially for that matter, affiliated with FXDreema at all.
-
RE: FxDreema Discord Server?posted in General Discussions
Maybe snobbish, maybe not...but this isn't an open invite to everyone. You will probably be removed if you don't know how to use Dreema to build and design your own EA. The server is for people who have a clue, who are working on more advanced things and sharing things that should feel like "basic knowledge" as well as some tips and tricks with Dreema that aren't so obvious.
-
RE: Pattern finder robot.posted in Questions & Answers
This is the difference between what is building an EA and what is designing an EA. Where most people think looking at a chart filled with indicators and either adding or eliminating is how you "optimize" or build an EA. That entire thought process is wrong and is not how EA's are to be designed.
What you have thought of is a price action pattern that your goal should now be to replicate the most perfect trade that you see happen with that pattern. When you design and frame that trade, you should have a best case stoploss and a worst case profit target in mind (the lowest profit, with the highest stop loss that you would accept on that specific setup on that specific time frame).
With that information, now you go through history on several pairs and time frames and find how many times that pattern repeated itself. When you optimize to find that information, if you have any winning scenarios leftover, that means you have found that many # of trades that gives you that many # of profitable scenarios at a minimum with that maximum accepted stoploss.
Now throw in a command that terminates the EA after 20 consecutive failed trades and you can sort through "optimizations" very quickly.
-
RE: Close trade when MAX DD is reachedposted in Questions & Answers
@l-andorrà said in Close trade when MAX DD is reached:
@bagheria You can try this:

the problem with this if it still exists, is that you havent turned the numerical value of 20 to represent a percent of anything. Its just the #20. I think you would first have to do a formula block, or modify variables of sorts...some combination maybe, to first create a variable that represents a % of balance or equity, then multiple that variable to have a referenceable percent now.
-
RE: Condition 1 completed then wait for execution of next conditionposted in Questions & Answers
you could also use a flag type system. if condition is true set a flag. always check for that flag, and if it is true, then perform another condition.
-
RE: Converter not working for 2MB files or largerposted in Bug Reports
@camhawk said in Converter not working for 2MB files or larger:
He said I could advertise on the forum many years ago. It was the old forum before this one. I've only just now done something about it. Happy to remove it if he's changed his mind.
Cam, care to do another looping tutorial?
-
RE: Drawing Trendlines on Chartposted in Tutorials by Users
@savagetrades said in Drawing Trendlines on Chart:
Just to help others that are still trying to draw trendlines in their EAs. Hopefully this helps someone.
See image links:Blocks to use in FxDreema - https://drive.google.com/file/d/1MqzEQQOfYO7pB4H8P7Oc2nAtVO8bcwdg/view?usp=sharing
Auto adjust and print example in EA on MT4 - https://drive.google.com/file/d/1M558eo9Ca1xs7ekGsIAhY8kS3kp5DX2w/view?usp=sharing
Auto ZZ line drawing tool was done by one of the old heads. Not Roar...the other one. If I can recall it, Anyways, thats also a very nifty feature as it draws new lines every time theres a H/L or HH/LL, depending on what you want it to do. Very nice addition to do it this way. Thanks.
-
RE: Basket TP based on money profitposted in Questions & Answers
@piptheripper said in Basket TP based on money profit:
Hi, I know this has been discussed before, but so far no one seems to have found a solution. I am trying to place a TP for a basket of orders with different entry prices and different lot sizes. The TP should be placed at the price level where the accumulated profit of all the orders will reach x money profit.
I am aware of the solution with using "check profit unrealized" block and then close all positions when x money profit is reached. But I am trying to find a way to place a TP order at that price level.
Does anyone have a solution or an idea how to do this?
What you are asking for is illogical it seems to me, at least with the current way of thinking of it.
Your profit target is one of a money.
The target you seek is that of a price level.All you are trying to do is draw a line at a money value in comparison to price. That to me means you have to use a formula, that includes a way to convert they money target back to pips and then add pips to current asking price, or bid price.
-
RE: Condition 1 completed then wait for execution of next conditionposted in Questions & Answers
@vsidaarth said in Time based execution of conditions:
Hi all.
How to create a variable so that when the first condition becomes true to remember that (in a variable). Then, also on every tick checking the second condition if the variable is set to true ?
Because I want the EA to wait for the second condition to happen once the first is achieved.
to be clear, logically, "time based" is not same thing as "not now, but later,....condition based" approaches. Time based would be, if X condition is true, set timer X, then pass.
Maybe that logically helps you find the answer you now seek?
-
RE: Round Number Block (Pass when near round number)posted in Questions & Answers
2 months later, here I am with a thought and trying to find a solution. You?