I want to add to my code that the entry should not be on the open of the next bar according to the following code but only after the opening and after the price has retraced x number of points.
How would I do this for a long /and short)?
>IF (c1 AND c2) AND not daysForbiddenEntry THEN
BUY 1 CONTRACT AT MARKET
Warning: Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced clients who have sufficient financial means to bear such risk. The articles, codes and content on this website only contain general information. They are not personal or investment advice nor a solicitation to buy or sell any financial instrument. Each investor must make their own judgement about the appropriateness of trading a financial instrument to their own financial, fiscal and legal situation.
Use this only to report spam, harassment, fighting, or rude content.
Please wait, sending report.
Thank you, your report has been sent.