Re: XARD - Simple Trend Following Trading System

13381
nathanvbasko wrote: Sat Apr 01, 2023 4:35 am Indeed... I'm with ChatCPT just moments ago. Experimenting what it can do with my existing tools.

Anyway, even before ChatGPT... I thought kvak and mrtools are both an AI the way it produces & shares great indicators/tools.. one after another.
I have a request for you.
Of course, I'm light years behind people like kvak, mrtools, xard777 and you.
And not even with chatGPT would I be able to do what I ask of you.
You have a wonderful indicator called v2vVWAP that is based on MIDAS (I'm devoted).
Wouldn't it be possible for there to be an alarm and phone notification when a candle crosses or/and touch the last outer/exterior/last lines and the central MIDAS Vwap???? You could do it?


Please :roll:
These users thanked the author saishala for the post:
Jedidiah
From the domains of my desk and laptop Full of Porn and Charts I call upon the Spiritual Presence and Power of Richard Wyckoff, Jesse Livermore, George Soros and all the Wise in Volume and Standard Deviation to enlighten and make everyone get off their asses and go to study Market Structure, Liquidity Pools and Volume.

Selah


Re: XARD - Simple Trend Following Trading System

13382
knglerxst wrote: Sat Apr 01, 2023 4:57 am I was thinking about this recently. I wonder how emerging AI will change the trading game. Will the underlying market algorithms have to change in response? If so, is that going to make trading manually harder?
could affect trading hours, and leverage i dont really see anything else
unless everything became at a fixed rate
unless the market becomes sideways, you could still rake in cash with systems meant for that
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters

Re: XARD - Simple Trend Following Trading System

13383
Take 20mins over the weekend to print out and colour in the candles Blue or Pink.
See how you do.
For any woke candidates please note that there is no wrong answer and an attendance certificate is still awarded.
Xard777
Attachments
XARD: If Carlsberg made charts... Probably the best charts in the world

Re: XARD - Simple Trend Following Trading System

13385
xard777 wrote: Sat Apr 01, 2023 5:20 am Take 20mins over the weekend to print out and colour in the candles Blue or Pink.
See how you do.
For any woke candidates please note that there is no wrong answer and an attendance certificate is still awarded.
Xard777
Image
Giving the students homework... :clap: :lol:
These users thanked the author BeatlemaniaSA for the post (total 4):
knglerxst, Jedidiah, saishala, Chickenspicy
BEATS V5 - "Enjoy The Quiet Between Trades”

Improve Your Trading Psychology - NO FEAR, NO DOUBT


Re: XARD - Simple Trend Following Trading System

13386
saishala wrote: Sat Apr 01, 2023 5:06 am I have a request for you.
Of course, I'm light years behind people like kvak, mrtools, xard777 and you.
And not even with chatGPT would I be able to do what I ask of you.
You have a wonderful indicator called v2vVWAP that is based on MIDAS (I'm devoted).
Wouldn't it be possible for there to be an alarm and phone notification when a candle crosses or/and touch the last outer/exterior/last lines and the central MIDAS Vwap???? You could do it?


Please :roll:
Best not to assume and even though it is April 1 this is not a joke.

write a VWAP indicator based on MIDAS that will send alerts and notifications when a line is crossed.

AI
Here's an example code for an MT4 indicator that calculates the Volume Weighted Average Price (VWAP) based on the Market Interpretation/Data Analysis System (MIDAS) method and sends alerts and notifications when the VWAP line is crossed.

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_plots 1
#property indicator_type1 DRAW_LINE
#property indicator_color1 CLR_ROYALBLUE
#property indicator_style1 STYLE_SOLID
#property indicator_width1 2

//Inputs
extern int DayStartHour = 8;
extern int DayEndHour = 17;
extern int PeriodsBack = 100;

//Global Variables
double VWAPBuf[];
double LineBuf[];
datetime lastAlertTime;

//Indicator Initialization function
int init()
{
string vwapsymbol;
vwapsymbol="VWAP("+Symbol()+","+IntegerToString(PeriodsBack)+","+IntegerToString(DayStartHour)+","+IntegerToString(DayEndHour)+")";

SetIndexBuffer(0, LineBuf);
SetIndexBuffer(1, VWAPBuf);
IndicatorDigits(Digits+1);
SetIndexLabel(0, "MIDAS VWAP");
SetIndexLabel(1, "");
SetIndexShift(1, PeriodsBack);
lastAlertTime = 0;
return(0);
}

//Indicator Calculation function
int start()
{
int i, counted_bars = IndicatorCounted();
datetime vwapAlertTime = 0;

for(i = Bars - 1 - PeriodsBack; i >= 0; i--)
{
double pVolume = 0, pValue = 0;
datetime pTime, startOfDay, endOfDay;
int numBars = 0;

// Get start and end of day time
if(TimeHour(Time) >= DayStartHour && TimeHour(Time) < DayEndHour)
{
startOfDay = Time;
endOfDay = startOfDay + (DayEndHour - TimeHour(startOfDay)) * 3600;
}
else if(TimeHour(Time) < DayStartHour)
{
startOfDay = Time - (TimeHour(Time) - DayStartHour) * 3600;
endOfDay = startOfDay + (DayEndHour - DayStartHour) * 3600;
}
else
{
startOfDay = Time + (24 - TimeHour(Time) + DayStartHour) * 3600;
endOfDay = startOfDay + (DayEndHour - DayStartHour) * 3600;
}

for(int j = Bars - 1; j >= 0; j--)
{
if(Time[j] < startOfDay)
{
break;
}

if(Time[j] <= endOfDay)
{
pVolume += Volume[j];
pValue += Volume[j] * ((High[j] + Low[j] + Close[j])/3);
numBars++;
}
}

// Calculate VWAP
double vwap = pValue / pVolume;

VWAPBuf = vwap;

if (i == Bars - 1 - PeriodsBack) {
LineBuf = vwap;
}
else {
LineBuf[i] = LineBuf[i+1];
}

if (High[i] >= VWAPBuf[i] && Low[i] < VWAPBuf[i] && Time[i] > lastAlertTime) {
Alert(vwapsymbol + " has crossed at " + DoubleToString(VWAPBuf[i], Digits) + " on " + TimeToString(Time[i]));
Notification(vwapsymbol + " has crossed at " + DoubleToString(VWAPBuf[i], Digits) + " on " + TimeToString(Time[i]));
lastAlertTime = Time[i];
vwapAlertTime = Time[i];
}
}

if (vwapAlertTime > 0) {
Comment(vwapsymbol + " has crossed at " + DoubleToString(VWAPBuf[i], Digits) + " on " + TimeToString(vwapAlertTime));
return(0);
} else {
Comment("");
}

return (0);
}
The indicator will calculate the VWAP based on the MIDAS method using the inputs provided (DayStartHour, DayEndHour, and PeriodsBack). The VWAP line is plotted as a blue line on the chart. The indicator will scan the historical data and send an alert and notification if the price crosses the VWAP line. The lastAlertTime variable is used to prevent multiple alerts from being sent for the same cross. The calculated VWAP value is also displayed in the alerts and notifications. The lastAlertTime variable is reset when the chart is refreshed.
These users thanked the author XXXX for the post (total 2):
saishala, Jedidiah
nil desperandum

Re: XARD - Simple Trend Following Trading System

13387
nathanvbasko wrote: Sat Apr 01, 2023 4:35 am Indeed... I'm with ChatGPT just moments ago. Experimenting what it can do with my existing tools.

Anyway, even before ChatGPT... I thought kvak and mrtools are both an AI the way they produces & shares great indicators/tools.. one after another.
Based on my my initial test of ChatGPT with PineScript, MQL4, and MQL5 coding... Maybe within 5 to 10 years it may become more intelligent.
But... Not unless they feed the AI with codes to learn that were made by mladen, mrtools and kvak. ; )---
These users thanked the author nathanvbasko for the post (total 2):
saishala, Jedidiah
Since Frank Sinatra sings in his own way, my charts sing... ♪  I did it, My... Way...  ♬ ; )─

Re: XARD - Simple Trend Following Trading System

13388
FourXXXX wrote: Sat Apr 01, 2023 7:35 am Best not to assume and even though it is April 1 this is not a joke.

Going to debug this after dinner.

But I really want alerts only in the middle line and the outer lines of v2vVWAP.

Really thanks for your help and for the code.

:thumbup: :clap: :thumbup:
These users thanked the author saishala for the post:
Jedidiah
From the domains of my desk and laptop Full of Porn and Charts I call upon the Spiritual Presence and Power of Richard Wyckoff, Jesse Livermore, George Soros and all the Wise in Volume and Standard Deviation to enlighten and make everyone get off their asses and go to study Market Structure, Liquidity Pools and Volume.

Selah

Re: XARD - Simple Trend Following Trading System

13389
saishala wrote: Sat Apr 01, 2023 7:55 am Going to debug this after dinner.

But I really want alerts only in the middle line and the outer lines of v2vVWAP.

Really thanks for your help and for the code.

:thumbup: :clap: :thumbup:
Took me literally 10 seconds to get the result above. Ask a better question and you will get a better answer, tell ChatGPT what you want and you may surprise yourself.
These users thanked the author XXXX for the post (total 3):
Chickenspicy, saishala, Jedidiah
nil desperandum

Re: XARD - Simple Trend Following Trading System

13390
FourXXXX wrote: Sat Apr 01, 2023 8:25 am Took me literally 10 seconds to get the result above. Ask a better question and you will get a better answer, tell ChatGPT what you want and you may surprise yourself.

This place (forex-station) really is, and always will be the best website on and for forex.

And also really here is the place where you find the legends like mrtools, kvak, mntwana, Beatlemania, xard777 and etc...
But one also has to understand that everyone really wants to ask for help with something or comes to try to steal some pearl to sell it as yours.
For my part, I hate asking and pestering people. And everything I have that I think is useful for something I always try to share, knowing that some will turn around and trample everything...
But it doesn't bother me.

The sad thing is when you ask and they (the person) ignore you when a simple "no" would make things clear.
Just because everyone has the right to say no.
I have the right to say no and I want everyone to have it.

What chatGPT is going to do is that people like me can stop depending on the goodwill of others (if it occurs).
Because living in ignorance of something (like coding) is horrible.

And this thing (AI) is going to learn fast, really really fast.
Yes, it will.

And I see the result... A dystopic future on the markets maybe...The supreme algorithm.... It will always be out of balance. It will decrease (a little) its hegemony in the market.
(And forget about minute 1 (I already did it)... maybe minute 5 should also be forgotten... I hope not the 15...)

And I believe that one day the need to ask will almost end. (just almost...)
I remember that someone had said "knock and the door will open..." and "ask and it will be given to you".

What I did not know was that it would be an artificial intelligence that was going to do it.

Cookie???
Attachments
These users thanked the author saishala for the post:
Jedidiah
From the domains of my desk and laptop Full of Porn and Charts I call upon the Spiritual Presence and Power of Richard Wyckoff, Jesse Livermore, George Soros and all the Wise in Volume and Standard Deviation to enlighten and make everyone get off their asses and go to study Market Structure, Liquidity Pools and Volume.

Selah


Who is online

Users browsing this forum: knglerxst, MarcoGee, Telegram [Bot] and 63 guests