Trading Strategy automation

Hello
I need some guidance please
I would like to automate my strategy based on EMA crossover and VWAP
can you guide how can i go about doing that
I tried pinescripts versions generating from chatgpt adjusting multiple times
but its not doing exactly what i want to.
Summary of my strategy- to buy when 9 EMA crossovers over 21 EMA and both EMAs are over VWAP, additional condition that the swing resistance created after crossover must be broken. Target immediate resistance point with training and stoploss the swing support below entry price. Same inverse rules for Short trade

Hello @OyeMaverick

Based on the experience I’ve gained so far using AI to write code, I can tell you that the crucial point is how you write the instruction prompt for the AI. It’s essential to be as detailed and structured as possible. For example, I’ve found it very useful to break down the main task - the core of the software you want to develop - into simpler tasks. It’s also very helpful to provide the AI with concrete, specific examples of the behavior you want the code to exhibit, offer suggestions on how to achieve your goals, and propose possible solutions to any issues that you identify after some thought. It is like training the AI to make her better understand what you actually want to achieve. If you expect the AI to do everything and “think” through every little nuance, you’re bound to be disappointed.

One approach I’ve found useful is this: when I want to create a custom software tool, instead of writing the prompt directly in the AI, I draft it in a Word document as if it were a sort of project plan. Sometimes I spent even days on it, and the resulting document is far more extensive than the code the AI eventually writes. The point, however, is that the AI, once gets my document as prompt of instructions, ends up producing the correct code, often on the very first try.

Furthermore, try to collaborate with the AI. Let me explain: I’m not a programmer, so my coding skills are limited. When I couldn’t get the AI to produce exactly what I wanted, I had the AI help me understand the code it had written. This way, I was able to pinpoint where the AI was making mistakes, point them out, and suggest the correct solutions.

I hope these tips prove useful to you.
Good luck! :slight_smile:

1 Like