Hello,
Could anyone advise how to disable long entry and short entry?
For example: some condition then buy entry = false
Disable of entry orders
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Disable of entry orders
Hello monexx,
Example:
Example:
Code: Select all
Var: NoLongEntry(false);
NoLongEntry = false;
If condition1 = true then NoLongEntry = true;
If condition2 = true and NoLongEntry = False then buy next bar market;