Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to write a custom indicator in Quantopian?

I am trying to write a custom indicator in Quantopian. This formula is below and it would be used properly under daily data.

DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
LL:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);

I don't know how it can be wrote in the platform.

2 responses

Hey Qifeng, it looks like you did not finish writing the buy signal - Buy Signal--> IF CROSS(LL,90) AND (DD. What is the condition for DD given after the AND?

Ryan

Hi, Ryan

I don't know why the rest of the condition didn't shown. I put them below. DD is less than 40.