Thank you that is a good idea. Please help me with this logic. My aim is to say that if the average price of the open trades - current price > 10 pips, then close all the trades. I am happy to try your solution but how do I set that up to achieve what I am after?
Posts made by Tulefi
-
RE: Trying to close a set of trades using overall profitposted in Questions & Answers
-
RE: Trying to close a set of trades using overall profitposted in Questions & Answers
I have come across a related issue. I need to know the current profit for a bunch of trades to use in a close out condition. Any ideas?
-
RE: Trying to close a set of trades using overall profitposted in Questions & Answers
Hi AMbrogio - that has worked and is generating data, thank you.
-
Trying to close a set of trades using overall profitposted in Questions & Answers
I have a series of trades that open using "add to volume". The trades are opening fine. But I am having no joy closing the trades based on average profit.
Please advise what I need to try to fix this.
-
Why will this not trade?posted in Questions & Answers
Please will you review this EA (shared/YqgAZ89hd) and let me know why it won't generate any trades on backtest. I have tried various pairs and time charts but it just won't trade.
-
RE: MathRound questionposted in Questions & Answers
Thank you. I tried the customer code and it seems to work!!
-
MathRound questionposted in Questions & Answers
I have scoured the forum but nothing that answers this speciifc situation.
I am building an EA to trade USDJPY and one of the conditions needs a round number. So for example, if the actual price is 134.123 I need 134, and if it is 134.567 I need 135.
How do I achieve this in the actual condtion box? Do I need customer code (never used that before)?
-
RE: Pause for a tickposted in Questions & Answers
@roar do you know if the seconds filter starts at 0? So if I filter 1 to 60 will the EA start at 1 second past the minute? I am also wondering if every n ticks could work. Basically I want the EA to wait for one tick to happen in the new period before continuuing with the calculations for opening a trade.
-
Every "n" ticks explanationposted in Questions & Answers
I want my EA at the start of a new period to count 1 tick before calculating trade open conditions. How exactly does "every n ticks" work? When the EA gets to it, does the EA then count the number of ticks specified before moving on down? I am thinking that if I have a "once per bar" before it, and specific 1 tick, the EA will wait for the new bar, wait for a tick to happen, then continue. Please advise.
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
Yes I think this is down to the backtesting. Thanks for your help, very generous and appreciated.
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
Thank you for looking at it!!
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
It's block 26. I am getting too many trades and compared to my analysis data the EA is often not calcualting this block as it should be.
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
I understand of course that current candle = 0
