TrendLine EA
-
Hello fxDreema.
Alright?
I tried to create an EA that works at the intersection of the lines LTA (Line Bullish Tendency) and LTB (Line Low Tendency), but it did not work properly.
It also LCC (Line Up Channel) and LBC (Low Line Canal)
It should work after I trace lines of trends on the platform, and each line must have a name so it can recognize them each.
He began opening orders without my permission
Link to my project: http://fxdreema.com/shared/2m0AEpIMd
My EA this based on this here: # http://www.ea-coder.com/forex-software/ ... ne-trader/. UaZhfkBtgeG
-
What is not working exactly?
-
Well, at first glance I can't see any trades-limiting blocks, such as "No trade is running" or "Once per bar" or whatever it takes to limit the number of trades. You know that the condition is just a condition and it can be true tick after tick all day long.
By the way, you don't need this "OR" block over there. Maybe you want to connect the output of the "AND" to the input of "OR".
-
__What is not working exactly?[/quote:2lmwz60m]
I thought condition already limit the trades.This working wrong. This opening without orders I have made a trend line on the chart.
__Well, at first glance I can't see any trades-limiting blocks, such as "No trade is running" or "Once per bar" or whatever it takes to limit the number of trades. You know that the condition is just a condition and it can be true tick after tick all day long.
By the way, you don't need this "OR" block over there. Maybe you want to connect the output of the "AND" to the input of "OR".[/quote:2lmwz60m]
If I were in your case, as you would? Could you give me an example of a project? I do not understand what you mean by blocks "And" and "Or" -
What is a condition? If you have numbers 1 and 2, there cah be a condition like this: Is 1 lower than 2?. Every time when you ask that question it will be true!
Notice that your Condition blocks are located under "on Tick", which means that they are executed on every tick.
Notice one more thing - your Conditions does not care how many trades you have, they work with something else - indicators.In a single tick, all the blocks connected to AND must be passed in order for AND to pass. Obviously AND passes when the last block connected to it passes, and only when others were passed too.
OR is also to be used with multiple blocks connected to it. OR passes once when one of the blocks connected to it passes. Again, this happens In a single tick .... for the next one everything is clear again.
-
I appreciate the help, but unfortunately this difficult for me to understand at the moment. Please do me a project so that I can understand, and through this project I can build my strategy from what you do.
I made my strategies tick because you did the first strategies tick, and I thought it would have no problems.
-
I don't want to create full EAs for anyone, my role here is to help people to understand how something works and then they should be able to do it alone. I prefer exact simple questions about how some block works or something like that. Unfortunately I'm not even able to think about bigger and complex projects, because I already have one to think about - fxDreema.
-
Okay, so as I do in a News, my EA open a pending order to buy, sell and another pending, at 08:00hs, with 7 pips from the price space, and 7 pips SL and 50 TP. If the case is one drives, the other is automatically deleted.
-
I can suggest 2 ways to delete a pending order after another one was previously deleted. The first way is by checking the number of orders/trades under "on Tick", and for example if there is a trade created - to delete pending orders. And the other way is in "on Trade" - when a pending order is opened, this will execute "on Trade" event and there you can detect that a new trade is opened and do something at this moment.
-
__Okay, so as I do in a News, my EA open a pending order to buy, sell and another pending, at 08:00hs, with 7 pips from the price space, and 7 pips SL and 50 TP. If the case is one drives, the other is automatically deleted.[/quote:2kzug0wc]
Sorry fxDreema. Question in wrong topic. This question is for the post of News EA.