That wouldn't work. No ticket number is = 1.
Posts made by isp00rt
-
RE: How can I choose what trade is loaded on pink blocks?posted in Questions & Answers
-
RE: Can I create a bucket of orders with one only?posted in Questions & Answers
I knew that. Unfortunately you cannot choose which one by using 'For each Trade'. You can choose one, as is shown at your image, but not a specific one all the time.
-
How can I choose what trade is loaded on pink blocks?posted in Questions & Answers
I need to use several pink blocks but all of them must apparently work with a 'For each trade' block heading them all. That loads and checks all trades that are open on my chart. How can I specify that a specific trade (identified with its unique ticket number) is the only one for which all those blocks are applicable?
-
Can I create a bucket of orders with one only?posted in Questions & Answers
Looking at the examples I see I can create buckets of buys or sells. I would like to know if I can create a bucket including one only buy or sell and not including any other trade.
-
Has anyone created trailing stop structure for a single trade?posted in Questions & Answers
I recently learned that the 'Trailing stop' block will trail all stop of my orders no matter what. I would like to have the same options available on that block but applicable at a single order only (the one I decide). Has anyone created something like that? I haven't found any at the examples so far.
Thank you very much in advance.
-
RE: Serious bug in this EAposted in Bug Reports
Thank you very much for your explanation. Now I understand it much better. I will try what you suggest.
-
RE: Random Tradesposted in Questions & Answers
That indicator is not reliable. What you see on chart is not what happens tick to tick because it repaints previous segments dependenig on the position of price right now. More than probably those random trades are real when the indicator changes colour, but then it is repainted a few bars later.
I recommend you to change that indicator.
-
RE: Serious bug in this EAposted in Bug Reports
Could you fix the problem? This problem still persists

-
RE: Doesn't Entry orderposted in Questions & Answers
Because all blocks are on the 'Init' tab. Simply move them to the 'On Tick' tab.
-
RE: Search for block in diagram by numberposted in Questions & Answers
You can do it through your browser (ctrl+F) and then insert the number.
-
RE: Serious bug in this EAposted in Bug Reports
I did it as you suggested but it doesn't work properly yet. This the new structure now:
https://fxdreema.com/shared/oHOYeAtsc
Now all 'pink' things have a 'For Each Trade' above except on blocks 12 and 13. I don't know why but they already work correctly. The problem now is that blocks 48 and 49 are not catching the price levels they should. It is true that no more alien SL levels are taken from other charts. Now they are caught from the current chart, but incorrectly.
I show some examples. As you can see I added a comment block in which I show all relevant SL levels for the EA: the initial one, the one related to the MA and finally the one activated by the trail stop.
First example:

Here the trailing stop value is exactly the same as the MA one. As the trail stop conditions were not met at this point, it should be 0 but I took the wrong value.
Second example:

Similar situation, but in this case the value taken is the initial SL. As in the previous case, it should be 0.
Third example

In this case the trailing stop effectively moves as required (upper red line), but the value caught is still the one corresponding to the MA.
All blocks are functioning correctly except those planned to take the real value of the Trailing stop.
-
How can I compare a TS and another price level?posted in Questions & Answers
Let's imagine the following scenario:
- I want to open open several trades in the same direction (let's say buy) one after another every 10 minutes. This I can do.
- All of them wil have the same SL level price at a fixed pips distance from its open price. All the following ones will have that level or higher, never lower. This I can also do.
- There will be a Trailing stop that will be common to all trades. This means that it will be activated from the first trade and then, as price moves up, will pull it up. This is what I want.
What I want to do is comparing both Stop levels for each new trade after the first one when opening it. I want to choose the shortest stop level comparing the current trailing stop with the fixed pips level for the new trade.
I know how the Trailing stop block works, but I have no idea how can I catch its price level now in order to do that comparison. Could someone please help?
Thank you in advance.
-
RE: Expert advisor opens its positions against the algorithmposted in Questions & Answers
I don't understand what the blocks on 'On Chart' are suppoesed to do. Are you sure they work correctly on demo?
-
Serious bug in this EAposted in Bug Reports
This EA I'm working with takes a random SL from one chart and then uses it for other charts.
https://fxdreema.com/shared/nievS41Hc
Look at this image:

The bottom trade was the first one to be opened with that stop level. As you can see its SL level was 'caught' I don't know why and then used in other two charts. However the EA worked well in all other charts. This is certainly a bug.
-
RE: Could someone please tale a look on my EA?posted in Questions & Answers
I found the origin of those weird numbers. They are the SL of another trade!!!

Look at this:

The bottom trade was the first one to be opened with that stop level. As you can see its SL level was 'caught' I don't know why and then used in other two charts. However the EA worked well in all other charts. This is certainly a bug. I will copy this message at that subforum too.
-
RE: Could someone please tale a look on my EA?posted in Questions & Answers
A new version including substantial changes is now available:
https://fxdreema.com/shared/nievS41Hc
Two important features have been added.
- MA stop and trailing stop are now considered every time a new trade is open.
- When a trade is opened the most favorable stoop is considered (i.e. the shortest one).
This new structure has solved apparently my previous problems, but new ones have raised up.

Let's see the most serious ones:
- For reasons I don't understand, trades are not opened because weird numbers are taken for the initial SL after a first round of trades has been closed. Here you have an example of what I mean:

As you can see three different charts are requested to open the same weird SL level!! How can this happen if no terminal variables are used? I have no idea where they come from. This happens the more often the more trades have been opened for the day.
- On the other hand, some trades are not opened because no indicator value has been available:

This happened repeatedly on a single chart. Why not in any other one?
Could someone please give me a hand on this weird behaviour?
-
RE: storing a price levelposted in Questions & Answers
I was wrong sorry. I think your structure should work. I don't know why it doesn't, sorry.
-
RE: Highest and Lowest Price Not Consistenceposted in Questions & Answers
Your comment block is wrongly set. Look at the last example of this page to do it correctly.
-
RE: storing a price levelposted in Questions & Answers
You are useing the same variable for two different price levels. You should use different variables.