DIDI index bug

Didi is directional as it is based on two cci as far as I can tell from this: https://guide.traderevolution.com/traderevolution/desktop-application-for-windows/windows/technical-indicators/other/didi-index#:~:text=The%20Didi%20Index%20is%20an,and%20to%20determine%20market%20reversals.



LongEntrySignal = Didi Index (DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,LinearWeighted)[2] is Down;

ShortEntrySignal = Didi Index (DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,LinearWeighted)[2] is Down;




EDIT:
confirmed by mql4 code this is not symmetrical:

     LongExitSignal = (iCustom(NULL,0"SqDidiIndex",DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,0,0,2)<iCustom(NULL,0"SqDidiIndex",DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,0,2,2)
      && (iMFI(Subchart1Symbol, Subchart1Timeframe, MoneyFlowIndexPrd1,2)>iMFI(Subchart1Symbol, Subchart1Timeframe, MoneyFlowIndexPrd1,2+1)));

     ShortExitSignal = (iCustom(NULL,0"SqDidiIndex",DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,0,0,2)<iCustom(NULL,0"SqDidiIndex",DidiIndexDownFstPrd1,DidiIndexDownMdmPrd1,DidiIndexDownSlwPrd1,0,2,2)
      && (iMFI(Subchart1Symbol, Subchart1Timeframe, MoneyFlowIndexPrd1,2)<iMFI(Subchart1Symbol, Subchart1Timeframe, MoneyFlowIndexPrd1,2+1)));

   } 





Attachments
No attachments
  • Votes +1
  • Project Extending SQ
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

21.07.2022 16:22

Task created

b
#2

bentra

21.07.2022 16:24
Voted for this task.
IH
#3

clonex / Ivan Hudec

27.07.2022 16:36

Status changed from New to Fixed


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please