Ok this changes everything, when you get a cross set a variable to 0, then once per bar add 1 to this variable, if this is < 60 and you get the cross you have the buy signal, if no signal reset to 0, and do this every bar until you get another cross. Set up a test project so you can watch on backtest, then you can add a shared link and say what's not working.
Posts made by jstap
-
RE: 如何设置在60根蜡烛内触发信号,我只需要这60根蜡烛内的信号posted in Questions & Answers
-
RE: Pending order Trade Managerposted in Questions & Answers
You need a reason for EA to work..so under if testing, place a trade how you want it to place, and blocks to cause the ea to do what it needs to do.
-
RE: Issue Integrating Currency Strength Meter into EAposted in Questions & Answers
Yes, but the problem with this type of indicator is, that the values are only there when you hover the mouse over lines. The only thing you can do is get the values in the object list by using the name via object on chart.
-
RE: Slippage Problem with pending ordersposted in Questions & Answers
I have never done this, but if you record the pending open price in a variable, then - the trade open price (high - low), you will get the point distance value, then use this to modify the TP.
-
RE: 如何设置在60根蜡烛内触发信号,我只需要这60根蜡烛内的信号posted in Questions & Answers
You will have to explain a little more on exactly what you mean?
-
RE: Pending order Trade Managerposted in Questions & Answers
I can help you, but I am unsure what you actually need.is trade manager an Indicator?
-
RE: Issue Integrating Currency Strength Meter into EAposted in Questions & Answers
I would guess the buffers don't contain a usable value. Open the data window with the indicator on the screen and see what values are in there.
-
RE: Bucket Of Closed Positions Problemposted in Questions & Answers
Then you need something like this:

-
RE: Slippage Problem with pending ordersposted in Questions & Answers
I think the broker, and news is causing trouble, even large prop firms ensure people don't trade news the broker will only have a certain number of traders to buy/sell a position to. And there is too much chance the trade won't work as expected.
-
RE: Issue Integrating Currency Strength Meter into EAposted in Questions & Answers
I would do it like this, add both buffers into 1 block:

-
RE: Question about the bookposted in Questions & Answers
That's good, let me know what you think, if you need any help with anything let me know.
-
RE: Check Highest MA nCandleposted in Questions & Answers
This code will do that for you: https://fxdreema.com/shared/lLGbVoL4
-
RE: three push divergenceposted in Questions & Answers
If you search the forum on divergences you might find something, it is not my forte, but as a general rule, if you have the 2 candle IDs then you can check if 1 angle is opposite to the other.
-
RE: Help for open position.posted in Tutorials by Users
Well done mate, this is a common problem, would have thought it would not have made a minimal difference on this, but the once per bar bar happening before relies on the condition being correct at that particular microsecond.
-
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
No one is answering what exactly? To get answers a specific question needs to be asked. @aliasia what do you, mean by high equity?
-
RE: Help for open position.posted in Tutorials by Users
This looks like it will work, what is not working? If you link blocks out and backtest, then through a process of elimination you can find where the problem is.
-
RE: Issue Integrating Currency Strength Meter into EAposted in Questions & Answers
Put the indicator into a comment and see if you are getting relevant values. You will then know if this setup should work. Also, remove the change markets block while testing.
-
RE: Pending order Trade Managerposted in Questions & Answers
The if testing block allows any blocks connected underneath to only run while backtesting.