@l-andorrà THERE IS an original trade from which the others result from (if trade button), and it results in opening up subsequent trades that follow, I am tlking about closing out the first trade of all of them.
Posts made by len 1
-
RE: If close parent trade resulting in boolean to close all resulting children tradesposted in Questions & Answers
-
RE: If close parent trade resulting in boolean to close all resulting children tradesposted in Questions & Answers
If I open a trade and then multiplies trades, and it goes positive for 3 minutes and then in 10 minutes go severely negative, is there a way to close the first trade (that all other trades multiplied from) and by doing so, close every subsequent or following trade by doing that one action? Thanks
-
If close parent trade resulting in boolean to close all resulting children tradesposted in Questions & Answers
Hello friends...
So, if there was a parent trade made by conditions, that multiplied because of conditions set forth, and now there are multiple trades. Suppose 20 have resulted as a result of those conditions....
Is there a way to close all the trades instantaneously, if the parent trade is manually taken out or closed? I suspect a boolean would be needed here, but the question is what blocks could be used for that? So far I have looked at "For each Closed Trade" (Magenta tab) but shouldnt that be at the top of each sequence? Same as "For each Trade"(Magenta tab)....OR, the "check how it was closed" (light pink) tab?
Or "If trade/order" tab (blue tab)?
I know they could be used, but all I want to do is to identify if a PARENT trade was manually closed and once that happens, close out its entire family of trades.Thanks...I appreciate all of your help. Thanks
Len -
RE: So, about custom code blocks and absolute values, suppose I want the difference between 2 lines, but just want the absolute valueposted in Questions & Answers
@l-andorrà so then is this absolute distance in pips or ?....
For example, if I have a moving average that is at 86.795 and another at 8.830, is the distance .035 or is it 3.5 pips? or how will that absolute distance be registered? -
Is there any way to save a secondary project with another name without overwritingposted in Questions & Answers
So say I have a project A, (and I want to add more steps and not sure if it will work), but I add some steps into the bot. Instead of saving with a new name, like project B and overwriting everything I previously programmed, is there a way to keep project A, without having to copy and paste every step?
-
RE: Open discussion on defining end of trendposted in General Discussions
It sounds like you got some secrets that you respectfully you opt others not to share. This whole forum is on making each other better.
-
RE: So, about custom code blocks and absolute values, suppose I want the difference between 2 lines, but just want the absolute valueposted in Questions & Answers
As always, youre the best L'Andorra! This should help me with something. I am going to resume soon. Thanks
-
RE: How do I get absolute value of a number?posted in Questions & Answers
If I was to look at the difference between two moving averages and put those values into a variable, how do I position my blocks to include the varNumber=Math
Abs(varNumber) into a variable? Is there an order to which I would do that? and when it comes time to compare the values in a condition block, do I use a variable or do I use custom code blocks? -
RE: So, about custom code blocks and absolute values, suppose I want the difference between 2 lines, but just want the absolute valueposted in Questions & Answers
So, should I make boolean if I wanted to choose whether to multiply by -1 if negative and just +1 if positive? I wanted to compare candle stick ma's by comparing their absolute value distances, but I was thinking the custom code block may minimize the amounts of blocks I need to do the same thing
-
Trailing stopposted in Questions & Answers
Are these JPGs really not here, deleted, or uploaded incorrectly?
-
RE: Getting Current Market Price and writing it to a Constantposted in General Discussions
So then, how are you using ask or bid? If they are all just relative definitions, then what are you using to standardize your meaning of it relative to the current price?
-
RE: Getting Current Market Price and writing it to a Constantposted in General Discussions
IF this is true "The bid price represents the maximum price that a buyer is willing to pay for a share of stock or other security. The ask price represents the minimum price that a seller is willing to take for that same security" Is it right to say, when calculating the distance of retracement when in a sell, you would use the bid from the opening price distance, and when a buy, you would use ask relative to opening price? I always get these mixed Ultimately I am trying to find a best way to get current price as it is dynamic and use that distance from opening price to calculate a break even point or trailing stop so, spread is never an issue anymore. How to get current price as it is?
-
So, about custom code blocks and absolute values, suppose I want the difference between 2 lines, but just want the absolute valueposted in Questions & Answers
Re: How do I get absolute value of a number?
How do I use the MQL Code Block to display the number I am seeking? For example I want the difference of Two moving averages and I have a value whether positive or negative and then I use the code Block, then what follows the code block? I ultimately want to display the absolute value on my screen but I am not sure how to put it into comment ugly
-
Using Indicator Visible/Indicator Appear, not able to use arrows although input parameters and buffers are used, Any suggestions?posted in Questions & Answers

So notiice here I inputted the parameters and Have also include buffer 0 and buffer 1 as the buy and sell arrows. The code did not have any color reference that I could find in the input tab on the picture and I wasnt sure if I needed to specify MA Trend Line method, either.
Can you please advise if this is close to attempting to properly use the buffers to get a signal for an arrow? How can I use the indicator appear or indicator visible if I cannot get the arrow to be detectable?
-
RE: Tutorial : Working with ex4 & ex5 indicator fileposted in Tutorials by Users
@l-andorrà Yeah, well, have to ask to find out anything. I appreciate it!
-
RE: INDICATOR RISE FALLposted in Questions & Answers
@miro1360 Hi Miro.
Are these defaults that have to be followed and/or are there minimums to be followed? -
RE: Tutorial : Working with ex4 & ex5 indicator fileposted in Tutorials by Users
Here is the copy of the edit indicators page
-
RE: Tutorial : Working with ex4 & ex5 indicator fileposted in Tutorials by Users
@xfire I am just wondering what is wrong in this. I have copied the input parameters but I keep getting the pink compliation errors. I did correct them but I still don't know why I am getting them -
ANY WAY TO GET PIP DISTANCE BETWEEN UPPER BOLLINGER BAND AND LOWER BOLLINGER BAND?posted in Questions & Answers
I HAVE TRIED THE CONDITION BLOCKS SUBTRACTING LOWER BAND FROM THE HIGHER BAND BASED ON OPENING AND OR CLOSING PRICE AND I MULTIPLIED THAT DIFFERENCE BY 10000 AND PLACED IT ALL INTO A VARIABLE AND PUT ONTO THE COMMENT UGLY DISPLAY....
I KEEP GETTING A ZERO PIP AMOUNT
THANKS
-
Abrupt losses at a new high or new low...how to avoid, detect, and end loss quickly; maybe reverse trade?posted in Questions & Answers
Candle ID0? Impossible.
Market Price? Doesn't work on present candle, at least for what I have put together
Cross of previous candle midpoint?!!
I even tried dropping to a lower time frame from a 1 hour to a 15 minute....I STILL CANNOT ISOLATE THAT DEADLY CANDLE THAT INTIATES ALL THOSE LOSING TRADES...
AAAAAUUUUUUGHHHHH!! CRY. LOL

Better through a picture...
I appreciate any input!! THANKS
