Here you go. Add this to your Indicators folder then attach it to the chart. Then right-click and save it as a template. The Xard system is now perfectVespaTrader wrote: Sat Aug 19, 2023 1:22 am How to add this to the Xard .tpl file ???? You have to admit it is much more obvious than colours
Here's the source code.
Code: Select all
//+------------------------------------------------------------------+
//| DuckBias.mq4 |
//| Copyright 2023, DaffyTaffy |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2023, DaffyTaffy"
#property link ""
#property version "1.00"
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
DisplayLogo();
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
void DisplayLogo()
{
ObjectCreate(0,"logo", OBJ_BITMAP_LABEL,0,0,0);
ObjectSetString(0,"logo",OBJPROP_BMPFILE, "\\Images\\biasduck.bmp");
// Set the anchor point to the bottom right corner
ObjectSetInteger(0, "logo", OBJPROP_CORNER, CORNER_LEFT_UPPER);
ObjectSetInteger(0,"logo",OBJPROP_XDISTANCE, 30);
ObjectSetInteger(0,"logo",OBJPROP_YDISTANCE, 30);
}
A few notes that hopefully help other newbs like me. Other than the obvious cues, make sure the RSIOMA in the sub-window shows a corresponding colour to the direction you're trading in. Pink dots below the Daily Open or Blue dots below the Daily Open on 30m timeframes tend to do exceptionally well. It even works on the 1M timeframe but for those types of trades, I'd recommend targeting a set no of pips as opposed to the ADR levels and trading solely off the initial second dot after an arrow appears.
Edit: My attachments were missing