- Recent add item(s)
- ×
- ×
- ×
-
Microsoft Windows 10 Home Edition 64-bit 1 × $49.00×
-
Remote Tech Support PC 1 × $45.00×
- ×
- ×
- ×
Subtotal: $455.99
https://www.tradingview.com/pricing/?share_your_love=vancitytech
Tell your buddies
Do you love TradingView and use us to make better investing decisions? Get $15 towards the purchase of any subscription for
Here’s an MQL5 script that implements a simple buy and sell strategy for Toncoin (TON) using Relative Strength Index (RSI) and Bollinger Bands as signals.
This script:
//+------------------------------------------------------------------+
//| TONCOIN Trading Strategy - RSI & Bollinger Bands |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade;
//— Input parameters
//+——————————————————————+
//| Main Trading Function |
//+——————————————————————+
void OnTick()
{
double rsiValue, upperBand, lowerBand, middleBand, price;
int rsiHandle, bollingerHandle;
// Get RSI value
rsiHandle = iRSI(_Symbol, timeframe, rsiPeriod, PRICE_CLOSE);
if(rsiHandle != INVALID_HANDLE)
{
rsiValue = iCustom(_Symbol, timeframe, “RSI”, rsiPeriod, PRICE_CLOSE, 0, 0);
}
// Get Bollinger Bands values
bollingerHandle = iBands(_Symbol, timeframe, bollingerPeriod, bollingerDeviation, 0, PRICE_CLOSE);
if(bollingerHandle != INVALID_HANDLE)
{
upperBand = iBands(_Symbol, timeframe, bollingerPeriod, bollingerDeviation, 0, PRICE_CLOSE, MODE_UPPER, 0);
middleBand = iBands(_Symbol, timeframe, bollingerPeriod, bollingerDeviation, 0, PRICE_CLOSE, MODE_MAIN, 0);
lowerBand = iBands(_Symbol, timeframe, bollingerPeriod, bollingerDeviation, 0, PRICE_CLOSE, MODE_LOWER, 0);
}
// Get the current price
price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
// Check for BUY Signal
if(rsiValue < 30 && price <= lowerBand)
{
if(PositionSelect(_Symbol) == false)
{
trade.Buy(lotSize, _Symbol, price, price – slPips * _Point, price + tpPips * _Point);
Print(“BUY Order placed at “, price);
}
}
// Check for SELL Signal
if(rsiValue > 70 && price >= upperBand)
{
if(PositionSelect(_Symbol) == false)
{
trade.Sell(lotSize, _Symbol, price, price + slPips * _Point, price – tpPips * _Point);
Print(“SELL Order placed at “, price);
}
}
}
Let me know if you need any modifications!
David tech gut in vancouver !
send message through whatsapp https://www.whatsapp.com/ +1-778-918-2815
We build any mql5 robot .
Watch this video about 4D dimension or multiply dimension time and space , tell us , your idea about … Read more
Stream Farm Tidal , Amazon Music by chrome selenium python automation code on windows11 running under ESXi hit million stream … Read more
How to Export VM in OVF Format in ESX or ESXi 6.7 | Export Virtual Machine ESXi 6.7 installation … Read more
Photoshop plugins are like magic tools that allow you to go beyond the default capabilities of this powerful software. These … Read more
CLICK HERE TO GER FREE ACCESS TO LAUNCH OWN COIN .
Using SEO (search engine optimization) and website optimization services will allow you to be at your best in the … Read more
Buy Solana (SOL) today , Sell it in 5 years by 500x bitcoin, cryptocurrency, crypto, altcoin, altcoin daily, blockchain, decentralized, … Read more
DIGITAL MARKETING SERVICES – SEO – CANADA-SEO.COM ADWORDS – NEED MORE LEADS?â. (city of vancouver) pic hide this … âGOOGLE … Read more
Buy Matic Polygon now . Future safe transaction technology software for financial institution like future banks . https://polygon.technology/polygon-cdk Polygon … Read more
Bluebeam BIM, Revit MEP, Autocad, 3D Rendering . Bluebeam BIM, Revit MEP, AutoCAD, 3D Rendering Lumion 3D software install windows … Read more