AyebaleJohnBob-Trading-BotAyebale John Bob - Trading-Bot Overview:
This trading strategy is designed to automate trades based on the "Smart Money Concepts" and "Fair Value Gaps" (FVG). The bot leverages multiple technical indicators and logic to execute buy and sell trades with dynamic stop-loss and take-profit (TP) levels.
Key Features:
User Inputs:
Bull & Bear Colors: Customizable colors for bullish and bearish trends.
Fair Value Gap (FVG) Color: Customizable color for visualizing FVG zones.
ATR Multiplier: Defines the sensitivity of stop-loss calculations based on Average True Range (ATR).
Take-Profit Multipliers: A set of five multipliers that scale take-profit levels dynamically.
Trade Signals:
Buy Signal: Generated when the price crosses above a certain low or when a bullish Fair Value Gap (FVG) is detected.
Sell Signal: Triggered when the price crosses below a high or when a bearish FVG is identified.
Stop-Loss & Take-Profit Logic:
Stop-loss levels are calculated using ATR and the specified multiplier.
Take-profit levels are dynamically determined based on the ATR multipliers, with five different levels for each trade.
Trade Execution:
The strategy allows for five simultaneous buy or sell entries, with each having its own take-profit and stop-loss levels.
The bot operates continuously, without any session restrictions, allowing trades at any time.
Visual Indicators:
Entry Signals: Visual shapes (green for buy and red for sell) appear on the chart to indicate entry points.
Progress Bar: A real-time progress bar is plotted, tracking the percentage gain/loss from the entry price.
Trade Information Table:
A dynamic table is used to display important trade information, including entry price, take-profit levels, and stop-loss. This table updates for each new trade (buy or sell), and shows real-time trade progress.
Risk Management:
The stop-loss is dynamically adjusted based on the ATR calculation, ensuring that the bot adapts to changing market volatility.
Take-profit levels are spread across five increments, offering multiple opportunities for profit capture.
Summary:
The Ayebale John Bob - Trading-Bot is designed to implement a sophisticated strategy that combines smart money concepts, fair value gap analysis, and robust risk management. It provides real-time trade information, progress tracking, and a flexible approach to stop-loss and take-profit strategies. The bot is ideal for traders looking to automate trades and visually track their progress directly on the chart.
Take-profit
ATR with Take and StopThis simple indicator will plot the take profit and stop loss values based on the ATR indicator.
It's possible to set how many times the ATR value will be applied to the closing price and
what trade type is used, Long or Short.
Fixed Percent Stop Loss & Take Profit % - For Study Scripts===========
Fixed Percent Stop Loss & Take Profit % - { FOR STUDY SCRIPTS! }
===========
A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price - This is for setting Alerts within your own Study Script for when either your SL or TP get hit.
Yup, that's about it!
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding Stops and Takes to your own scripts - hope it helps!
Set your "Open Long/Short" Alerts to be triggered "Once per Bar Close" - Set your "SL/TP" Alerts to trigger "Once per Bar".
--
We wrote this with a bit of a rush on! ~ If you spot any mistakes/bugs just let us know and we'll get round to them asap!
-----------
Good Luck and Happy Trading!
Fixed Percent Stop Loss & Take Profit %===========
Fixed Percent Stop Loss & Take Profit %
===========
A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price.
Yup, that's about it!
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT really profitable and NOT recommended!
You should be using this code as a way of adding Stops and Takes to your own scripts - hope it helps!
-----------
Good Luck and Happy Trading!
Scripting Tutorial A - TManyMA - StopsThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually.
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy.
- Strategy only enters long positions with a market order when MA crossovers occur.
- Strategy exits positions when crossunders occur.
- Trades 100% of the equity with one order/position by default.
- Ability to disable trading certain crosses with input checks.
- Ability to exit trades with a take profit or stop loss.
- User input to allow quick changes to the take profit or stop loss percentages.
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***