OPEN-SOURCE SCRIPT

VWAP Trend Guard

76
VWAP Trend Guard – Built by CodaPro.ai x ARiS

Prompt-Based Strategy Creation

“I have FOMO and want to buy gold and oil. I don’t have a lot of trading experience — I just want to make 1–3% profit every month. Can you build me anything so that I can trade MCG and MCL?”

That was the only input.

From that simple, human, emotionally honest prompt — ARiS, the AI strategy copilot inside CodaPro.ai, generated a fully automated trading strategy built for real markets.

This wasn’t hand-coded. It wasn’t based on a template.
It was built from scratch — by AI — using smart defaults, embedded risk logic, and live-execution hooks.

Prompt Interpretation by ARiS

To translate that raw FOMO-fueled question into structured trading logic, ARiS asked back:

“Should we trade with or against the trend?” → Let the AI decide
“Should we confirm trades with VWAP?” → Let the AI decide
“Should this be long-only or also short?” → Both
“What stop loss method should I use?” → User didn’t know what a stop loss is
“How much risk per trade?” → 1%
“Should I auto-close trades by end of day?” → Yes
“What timeframe should we trade?” → Whichever is safest for a beginner

Based on that, ARiS produced a complete day-trading strategy, wrapped in clean logic, with:

+ Trend-following entry using EMA + VWAP
+ ATR-based stop, target, and optional trailing stop
+ Risk-based position sizing (auto-calculated by equity %)
+ End-of-session flattening (no overnight exposure)
+ Full webhook alert system for live broker automation

Strategy Profile

Category Details
Markets MCL (Micro Crude), MGC (Micro Gold)
Timeframe Intraday (5–15 minute default)
Style Day trading (flat by session end)
Direction Long & Short
Indicators Used EMA(20), EMA(50), VWAP, ATR
Position Sizing Based on 1% equity risk
Stops & Targets ATR-multiplied SL/TP + optional trailing
Exit Triggers Target hit, stop loss hit, trend flip, or session end
Automation Includes JSON webhooks for entry/exit signals
Platform TradingView Pine Script v6

Disclaimer: Slippage, Backtesting, and Live Use

This strategy runs in TradingView’s strategy tester, where backtested fills assume ideal executions.

In real-world trading, you may encounter:

Slippage (especially on fast contracts like MCL)
Missed limits or early stop-outs
Trailing stop misfires or duplicates
These can be addressed by regenerating the strategy with:
Buffer logic
Slippage simulation
Broker-linked execution systems (e.g., Tradovate or IBKR)

The real magic is that this strategy didn’t come from a coder. It came from a conversation.
You say what you want — ARiS builds it. Instantly. Safely. Logically.

Who This Is For

This strategy is ideal for:

New traders who want a safe, day-only framework
Anyone trading gold (MGC) or oil (MCL) with micro contracts
Beginners who want to learn trading logic from what ARiS built
Professionals who want to convert human prompts into real algo logic

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.