Attachments forums

List of attachments posted on this forum.


All files on forums: 136272

Re: XARD - Simple Trend Following Trading System

DaffyTaffy, Sat Aug 19, 2023 4:54 am

VespaTrader wrote: Sat Aug 19, 2023 1:22 am How to add this to the Xard .tpl file ???? :Rofl: You have to admit it is much more obvious than colours :Fire:
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 perfect :)

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);
}
Side Note: After going through quite a bit of past posts and testing, I was able to grasp the 2nd dot concept. Maybe this is just me, but I found it easier to spot with v65. Was able to book profit on NAS100 yesterday. It was one quick scalp to the 23.6% ADR level. I was late to the move but happy with what I got. Took some on HK50 today too. Really love using this on Indices.

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
All files in topic