search a recent reply by me in someone elses thread with a solution for equity and balance protection
Posts made by TipsyWisdom
-
RE: Drawdown protectionposted in Questions & Answers
-
RE: SL by High/low candle bugposted in Questions & Answers
@l-andorrà said in SL by High/low candle bug:
@uriel-0 You are adding a Constant to both buys and sells. You need to subtract for buys and add for sells. Try this way instead:

if you are using variables and constants in the adjustment blocks, i.e. typed in...you cant have spaces. they must be named with underscores or preferably no space at all.
-
RE: Positionning the pending ordersposted in Questions & Answers
@bagheria said in Positionning the pending orders:
@tipsywisdom I think I made something wrong. look

All conditions are under M5 TF.
Once per bar always under H1 TF
Flags on true
....its multiple conditions, thats going to add some variety as well as the time filter being in that spot..do that at the top or just before entering the trade.
if you want to post a project link I can try to help. but ive tried to help someone sort through using signals at specific times before and I couldnt get it to work but that was a slightly different idea.
-
RE: Positionning the pending ordersposted in Questions & Answers
once per bar (h1) <- edit, added
5m signal condition (specifically select m5 in that block on LO and RO)
set flag to true
one per bar (h1)
check flag for true
enter tradeas to setting that flag false again, thats up to you.
-
ZigZag with AutoFib (*Updated link, first post)posted in Tutorials by Users
I used Miros ZZ tutorial to make a nifty auto fib tool.
enjoy.
*updated link
https://fxdreema.com/shared/2rPNuk26badded trendlines 3.26.22
-
RE: On trade not working correctlyposted in Bug Reports
@criptofuture said in On trade not working correctly:
@TipsyWisdom
Thank you for taking the time to answer.
I tried what you said "1" and also this "2" But it still doesnt work. 50% of the trade is still being closed as soon as is opened.
1

2

The EA trades when there is high volatility, so its important for it to count the trades every tick or as soon as they are closed. In order to do that is vital that it is counted On Trade, since I want to backtest the bot without it taking 60 hours a time.id be sure there is a spread filter of sorts trading in those conditions.
Perhaps try not doing it in the "custom (in pips)" and just use the one called Pips?
As for the group numbers, can you troubleshoot and try to do it without group numbers? Just get it to try to count all trades first and see if there is issues. I have always had problems with groups. Too much logic for me to think about because once you introduce groups, you must handle that entirely separate from everything else. It no longer even falls into the "all trades" category.
-
RE: Get signal from another time frame <<SOLVED>>posted in Questions & Answers
you just forgot to change the time frame point of view huh? hahaha just messing.
-
RE: Bug in a blockposted in Bug Reports
uncheck it if you are trying to use a variable. Checking it turns it into a variable.
-
RE: add indicatorposted in Questions & Answers
post some screenshots of your metatrader platform.
With what your objects screen how it looks with the indicator loaded.
With what your Data Window looks like with the indicator loaded
The inputs and buffers screen of the indicator when you load it. -
RE: how to canvert indicator to eaposted in Tutorials by Users
not possible.
thats like expecting to be able to convert the dashboard of a car, into the car itself.
-
RE: On trade not working correctlyposted in Bug Reports
solution to 1 is probably just do what I suggested. forget doing it OnTrade. Leave it OnTick, and put it under a If Position block. Now you've circumvented the resources argument of that. And for lessening the resources further, you can put it under a once per minute block.
As for the pips problem, the answer is the few MM away from what you selected.

-
RE: Get signal from another time frame <<SOLVED>>posted in Questions & Answers
nothing is wrong with the logic, you put what you needed to do to produce a signal on the selected TF.
but when you are choosing what TF to "test" the software, this is the point of view you are viewing it from. It will search for signals still on the selected TF's that you set in the EA.
SO in short, just changed the TF to 1m on the settings tab of Metatrader, and keep it as 15M input on your EA.
ensure your Constants sections reads like this:
Type ENUM_TIMEFRAMES
Name Timeframe1
Value PERIOD_CURRENTThe capitalization is required. This will produce a drop down style of selecting time frames from the MT screen as it looks like you did. I just refuse to save and use anything MT4 to my computer so I can't see what you have on the constants side.
-
RE: How can I create thisposted in Questions & Answers
weird, im rereading this now and I dont have a clue what he's asking for....I think I read @Youngtreptrader response because I know those calculations can be done.
I need clear logic to understand what the heck that first guy is asking for.
But it kinda sounds something like a constant modification of variables would be all that is necessary.
If balance is Y, modify the variable to be X.
X = lot size -
RE: How to close all trades in a day if you reached an amount loss or amount profit and close all trades till next day.posted in Questions & Answers
define 2 variable and 1 constant
variable = daybalstart
variable = balplustarget
constant = daytargetOnTick
2 Blocks
once per bar(daily)
modify 2 variables
-(daybalstart) choose Account Balance
-(balplustarget) choose Account Balance then adjust it by just typing +daytarget4 Blocks
once per bar (1m)
condition (account balance >= value of balplustarget)
close positions
turn off trade blocks2 Blocks
once per bar (daily)
turn on trade blockssomething like that.
-
RE: Simple MA cross algo on MT5posted in Questions & Answers
@dore said in Simple MA cross algo on MT5:
@tipsywisdom Good catch Stupid error on my part I'll correct & see if that changes anything I have been through so many different changes to get this to work. The BE & TS work but I could relocate to a better location
we all make them!
-
RE: stop trading after 2 consecutive winns?posted in Questions & Answers
@davidmcc said in stop trading after 2 consecutive winns?:
I don't see trade statistics in condition block. Help anyone?
thats mt4 only if I remember right.
thers a blue block called Check Positions Count for MT5.
-
RE: Simple MA cross algo on MT5posted in Questions & Answers
@l-andorrà said in Simple MA cross algo on MT5:
@dore The logic is correct. Is this the whole project or just a part of it? My only suggestion would be separating those BE and TS blocks. You'd better connect them both separated below a 'Pass' block instead.
agreed, not together, but not pass block. Id put it under an if position at least, use less computer resources when the time comes.
-
RE: How can I create thisposted in Questions & Answers
not at all, just the right math required.
It would need a formula to happen on, If Position, to calculate the necessary info.

