Hi,
Can anybody help me to code the following?
- If last close position is winner (Netprofit>0 or Positionprofit(1)>0), next trading signal would skip once. And, follow the signal after the signal come out again.
- If last close position is loser (Netprofit<0 or Positionprofit(1)<0), follow the next signal rule (no skip trade).
The above is used for turtle trading system.
Please help...thank you very much.
Last Close Position Reference
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Last Close Position Reference
I can't do the coding for you...Hi,
Can anybody help me to code the following?
- If last close position is winner (Netprofit>0 or Positionprofit(1)>0), next trading signal would skip once. And, follow the signal after the signal come out again.
- If last close position is loser (Netprofit<0 or Positionprofit(1)<0), follow the next signal rule (no skip trade).
The above is used for turtle trading system.
Please help...thank you very much.
but it would help others to help you if you can draw out your logic in a flowchart...
Re: Last Close Position Reference
Dear TJ,
Thanks for your reply.
The scenario is as per drawing.
If last trade is profit, disallow entry once when entry signal trigger; but, if the entry signal trigger again in the following bars, then follow the entry signal.
Please help for coding.
Thank you very much.
Thanks for your reply.
The scenario is as per drawing.
If last trade is profit, disallow entry once when entry signal trigger; but, if the entry signal trigger again in the following bars, then follow the entry signal.
Please help for coding.
Thank you very much.
- Attachments
-
- Capture.JPG
- (38.41 KiB) Downloaded 392 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Last Close Position Reference
Hello desire,
Please contact us directly in case you are interested in a custom programming.
Please contact us directly in case you are interested in a custom programming.