create bool constants, then use these for true/false in a condition
Posts made by jstap
-
RE: Condition based on user-input in the EAposted in Questions & Answers
-
RE: How to compare Two time frame (M1 & M15) comparisonposted in Questions & Answers
Set up 1 condition and check that.
-
RE: Martingale Reset Issueposted in Questions & Answers
This is quite a lot of work, start with this, above buy/sell have a pink for each trade block looking at the last trade, in the buy/sell block use in loop for lot and adjust by *1.5 (random number use the number you want to use), or you could do something like +0.1
-
RE: Doesnt tradeposted in Questions & Answers
Set up a test project, that draws a named line, then as the price crosses it it reacts in some way. You might better to use a value, this way it works when chart can't be seen.
-
RE: Martingale Reset Issueposted in Questions & Answers
At a guess this will count by type, you would have to manually martingale so you work on a total, also martingale buys or sells again in loss.
-
RE: How to delete the comment after 5 seconds?posted in Questions & Answers
Need more information, but basically count then delete.
-
RE: How to compare Two time frame (M1 & M15) comparisonposted in Questions & Answers
It is hard to check what is happening on MT4 2 timeframes on backtest. test each condition separately on each time frame, then you know it will work when all together.
-
RE: EA does not follow conditions set.posted in Questions & Answers
Need your shared link to look at, but it sounds like you need a condition of something like ID3 is bear, Id 2&1 is bull-buy, reverse for sells.
-
RE: Day of the week into a string variableposted in Questions & Answers
I am not sure what you're asking, under the once a day block it will only run once at that time.
-
RE: Day of the week into a string variableposted in Questions & Answers
Like that, the day variable will always have the day it is, so as you have it should print the name in a log message.
-
RE: Day of the week into a string variableposted in Questions & Answers
I got it wrong day constant, I meant variable.
-
RE: Day of the week into a string variableposted in Questions & Answers
If you use this DayOfWeek(); you will get the number, 0=Sunday. Then write this into custom code.
if (DayOfWeek()==0) Day_variable="Sunday";
else if (DayOfWeek()==1) Day_variable="Monday";
else if (DayOfWeek()==2) Day_variable="Tuesday";
Do this for all days. -
RE: Doesnt tradeposted in Questions & Answers
Candle open will never move, candle close on 0 is the current moving price.
-
RE: Line properties in input windowsposted in Questions & Answers
This page will give lots of information: https://docs.mql4.com/constants/indicatorconstants/drawstyles
It tells you what to use in the block:
-
RE: Line properties in input windowsposted in Questions & Answers
type = color
name = what you want
value = clrBlack or the colour you want, this will give you a drop down box with all colour choices in inputs -
RE: One Condition block with multiple levels to cross.posted in Questions & Answers
No, you would need multiple condition blocks, connect each one to yellow. (if true connect to orange, if false connect to Yellow)
-
RE: show indicatorposted in Questions & Answers
Save a template on your terminal with the same name as your ea
-
RE: I dont understand Martingaleposted in Questions & Answers
Is too hard to say from that picture, possibly, you have too large a lot accumulation, so the terminal is restricting your lot size to match broker regulations vs your account size
-
RE: Creating a buy and sell stop orderposted in Questions & Answers
Slippage can happen on pending orders, it has more to do with choosing a broker that has less. Slippage happens when the broker has fewer options to buy/sell a position, which is why it happens less when markets are in full swing (when liquidity is available)
-
RE: Dollar not Pips pleaseposted in Questions & Answers
Check trading conditions, check profit-close trades, or close profitable trades