Last Close Position Reference

Questions about MultiCharts and user contributed studies.
desire
Posts: 11
Joined: 26 Apr 2014
Has thanked: 5 times

Last Close Position Reference

Postby desire » 05 Jan 2015

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.

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Last Close Position Reference

Postby TJ » 05 Jan 2015

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.
I can't do the coding for you...
but it would help others to help you if you can draw out your logic in a flowchart...

Image

desire
Posts: 11
Joined: 26 Apr 2014
Has thanked: 5 times

Re: Last Close Position Reference

Postby desire » 05 Jan 2015

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.
Attachments
Capture.JPG
(38.41 KiB) Downloaded 392 times

desire
Posts: 11
Joined: 26 Apr 2014
Has thanked: 5 times

Re: Last Close Position Reference

Postby desire » 07 Jan 2015

Hi,

Is anybody able to code this?

Thanks in advance.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Last Close Position Reference

Postby Henry MultiСharts » 08 Jan 2015

Hello desire,

Please contact us directly in case you are interested in a custom programming.


Return to “MultiCharts”