The strategy from scratch questions and problems
-
You can get information from the 3rd trade if you are sure that you want to work with it, here is an example: https://fxdreema.com/shared/Et6KuJiXc
Here the orange output of "For each Trade" can be active at most once, no matter how many trades there are, it just loads parameters of the 3rd trade from the currently running ones.If you want to load 3rd trade which is sorted not by time of creation, but by something else, then the things are getting complex. Well, "For each Trade" can sort them by profit, look at the "Loop direction" parameter.
-
I do not know how to do ....
I have EA that opens trades. Start the account $ 5,000.I would like to close all trades if equity will increase by $ 100. for example
start 5000
next equity amounts to more than 5100 -> EA closes all trades and other EA opens trades from start
next Equity is more than 5200 -> EA closes all trades and other EA opens trades from start
5300 next ... and so onI tried to create something but I have no idea
https://fxdreema.com/shared/keJJADbAcFxdreema please help.
-
Well, this really depends, there are different variants that can be made. The question is how do you define that value of 5000 and then how do you want to change it. When the EA is closed, all of it's variables are gone. When you trade, the equity changes. There are things you should decide. And then... I think you can work with those variables

What I can suggest is to look at those variables when you click F3 on MT - as a way to store variables and then manually change them while the EA is running.
-
Two problems
-
How to display the current profit or loss from a specified pair? I have a few specific trades opened and every one of them I want to show a profit on its chart. How to do it?
-
How to protect against unauthorized use EA on different computers? Is it possible to insert a stutter function id or something else? Fxdreema do you have any idea?
-
-
If you only want to show that information, use the custom indicator "iExposure", it comes with MetaTrader. Otherwise we talked about this issue these days here: topic/2556
-
Is it possible to merge (for example) Group 1 and Group 2 into Group 3 ?
If yes, how to do this ? -
Blocks like "No trade is running" accept single value

-
I have few trades BUY, and I want to close all BUY trades when current price is 50 pips away from lowest trade (for example). But lowest trade is not oldest trade.
How to create this situation in fxdreema generator ? -
Here is how any parameter from any group of trades can be extracted: https://fxdreema.com/shared/7gyl9b5ye
- Define some Variable that will hold the final value
- Use "For each Trade" or another "For each..." block. Always reset the variable here, you will see it the additional properties panel of this block that is for controlling Variables
- Use some Condition. In this case - if the Open Price of the current trade is lower than the Variable -> continue...
- ... and set the value of that Variable to the Open Price
-
Hi
I have new problem.
I created such strategy https://fxdreema.com/shared/gBicMsTacI want put horizontal line on candle where MA crossing. And it works.
When MA cross again, I want delete previous horizontal line and draw on new cross (on candle). And it works too.But I named HL as BBB. And when new HL is true , it has name BBB1,BBB2,BBB3 etc. Why? Can I create always BBB horizontal line ? how to do it ?
It is becouse I want open BUY trade when close of candle Id1 is above horizontal line BBB. I think it doesn't open becouse name of HL is changing.
-
Look at the top 2 parameters in Draw Line. I know that they are confusing and you probably don't know what they are doing (me too
), but they cover 4 different situations. To always redraw the line when this block is executed using the same name, set those like this:The block can... : No
Redraw the....... : Yes
Object name..... : BBBAnd you probably don't need "Delete objects" in this situation
-
Could you tell me why this strategy on ticks opens only BUY positions ? It happend on tester and in real use.
But in tester on "control point" EA opens buy and sell trades.
Why? Where make I mistake ?
https://fxdreema.com/shared/AHc1rSpmd -
I got some sells. But these trendlines... I'm not sure that everything is fine with them, maybe I defined them wrong in the block. I think they need 2 price and 2 time points, but 1 time and 1 point appears in the block. I will check this tomorrow. But do you need trendline by angle, or normal horizontal line. Because these lines looks horizontal when I backtest.
-
It can be horizontal line. Trades must open above (BUY) or below (SELL) horizontal line. I have tried HL but it didn't works good. Than I used trend line. But can be a horizonatal line.
-
https://fxdreema.com/shared/aT4OUuwJ
http://i.imgur.com/4GiDvt0.pngthis is just an example, but it works for me
-
How to determine the condition that there is a vertical line at all. No matter on which candle, only the condition that exists.
Is Condition 4 is correct? -
Probably. The == thing and this attribute is shot in the dark. If such an object does not exists, the Condition block will not pass at all, not to it's orange output, not to it's yellow output. So only the fact that you are trying to load object that does not exists will stop everything right here in this block. Try this: https://fxdreema.com/shared/Hj86YoIfe
-
Some time ago I have used
"SIMULATE_TICKS 0 // Use this for offline charts - feed the EA with ticks coming from a certain market (SIMULATE_TICKS_MARKET). Options: 1 - enable, 0 - disable" and I changed "0" to "1" EA to offline chart.
Now I can't do this. How can I change EA to working on offline chart ? -
Now offline chart should be automatically detected, so no need to manually control this. But use the latest MT version., as this is something relatively new.
-
Today is Sunday and I cant to try it.
I want to campare two Buckets of trades (green and red). I want to close all positions when profit Bucket Green is greater in 30 percent than Bucket Red .
Is it right condition ?