@josecortesllobat
Thanks, I have seen that before but looks like too much for my brain to deal with unfortunately.
Latest posts made by Heisenburg
-
RE: Loop through double variables to find variable nameposted in Questions & Answers
-
RE: Loop through double variables to find variable nameposted in Questions & Answers
@fxdreema
Thanks a lot for the info, I am taking your advice on those formula blocks to reduce into one block. The limiting factor for me is I only know very basic coding hence why I did that bit I've figured out how to do it.
On the array idea, would you have any examples I could refer to in order to try that? Thanks -
Loop through double variables to find variable nameposted in Questions & Answers
Hi, I have a scenario where I have a lot of double variables created (for example (High, and high 5%, high 10% are variable names) , each of which will always ultimately be my Order price, stop loss and take profit.
I have different buying and selling scenarios whereby they all ultimately go to the same bucket of pending orders at which point I have an order price, which is stop loss and take profit variable.I would like the robot to tell me what the double price variable name is once an order is triggered. For example when an order price double variable is created I want to loop through all the double variable names to find out the order price of the double variable name. So eg if order price double price = High 5% (double variable name) then return High5% Would anyone know how to do this? I envisage having to create a collection of double variables then running a custom code block but I don't have a clue how to code.
Thanks -
RE: Value Between Filter blockposted in Questions & Answers
Yes but you would need to keep using that block if you had more than one condition. For example let's say there is a currency pair when the current price is between:
85.5 and 86
88 and 89
92.2-92.4
Etc
Etc
And these are hotspots on the market whereby there is no point in trading when price is between levels as your strategy would make a loss, it would be good just to have one block to tell the robot not to trade when price is within these levels. -
Value Between Filter blockposted in Questions & Answers
@FXDREEMA
Hi, I think it would be beneficial to have a between block. For example if you have a strategy whereby you only want to trade on candles that are between a certain amount of pips in length or there is particularly prices that you don't want your EA to trade on, it would be simpler to have to use one block rather than multiple blocks.It could be set up in the same way as the time filter eg there are
multiple times within the one block that you can set your EA to run on. Cheers -
RE: If Buy pending order taken no sell pending order and vice versaposted in Questions & Answers
I've simplified my block structure but for the life of me I can't get this to work. All I want is if Buy order is placed and then closed then don't take a sell order and vice versa until the next week. I feel as though this should be simple but I've spent hours and hours trying to figure it out. Counter blocks don't seem to work, For Each Closed Trade doesn't seem to work, arrrrrghhhhh!!!!!!

-
If Buy pending order taken no sell pending order and vice versaposted in Questions & Answers
My issue is I want my EA to work only once per week on either a buy or a sell. It works perfectly fine in terms of before a trade and during a trade. On trade created I have close trades. My issue is after a trade has been closed it still wants to look to open a new pending order when the conditions are met. How do I solve this? I have tried For Each Closed trade ad check age before Buy and sell Pending orders but I can't get that to work. Thanks

-
RE: Storing specific candle high, low and pip sizeposted in Questions & Answers
Finally figures this out - Just needed to add an and block after Modify Variables.
-
RE: Storing specific candle high, low and pip sizeposted in Questions & Answers
Can anyone provide me with any wisdom on this? It looks to me that as I have more than one weekday filter that the second block of weekday filter is negating the first block of weekday filter that I am using to store Monday high/low/pip value even though I don't have them joined up, arrrghh!
-
RE: Storing specific candle high, low and pip sizeposted in Questions & Answers
Further to this it looks like as the default value is zero then this Weekday filter doesn't seem to be working as if I manually change the Monday Daily High default from zero to a price on the chart I can see if buys at that price so it looks like this variable isn't doing what I want it to do ie work out the Monday Candle High value, anyone any ideas? Thanks