How to create a new expert advisor?

i want to know about expert advisor. how to make expert advisor on any script i.e. if i want to buy Dr Reddy @3010 n sell it @3020 how i can make this expert advisor??

You can create expert advisors based with Tradescript based on Open, High, Low, Close Values. go to pi-> help -> tradescript help and check the complete reference.

tradescript guide is not comprehensible as there is no mention of keywords i am confused regarding whether this “CLOSE”, “OPEN”, these are keywords or variables. plz help me with the tradescript.