I stole a profitable entry script, here is source code

I stole a entry script that my boomer boss uses for forex and stocks (he is a millionaire), but it is also surprisingly profitable in crypto. I will release the source code but it is written in C++, please convert this into python so I can use it in a trading robot

Attached: stole.png (880x350, 19K)

Other urls found in this thread:

ghostbin.com/paste/jpw4v
0bin.net/paste/6SEgBoxn5BsiewOG#C5UF4dH7npccjhQF5nNRwwRuPIzQgTsWtRpptifYhMW
github.com/vhcandido/GA-currency-strength
public.bitmex.com/?prefix=data/trade/
github.com/vhcandido/GA-currency-strength/blob/master/slides/presento.pdf
docs.mql4.com/predefined/bars
docs.mql4.com/series/ihighest
docs.mql4.com/customind/indicatorcounted
0bin.net/paste/mzrwzuFOqLcdrbfl#ublO5Uq5N84lUVEt1QX1-u3QMWT8ZOJIJSkdHJ8sMtS
0bin.net/paste/1uqxAg- Gtcm fb1#A LLp7OmEdWem4PC3K7wN5eup9V5wikS-iMWHs7SIXz
diffchecker.com/6YS5dNqv
twitter.com/SFWRedditGifs

weird larp

Wow I am a millionaire. Thx

here is the souce code, forgot to include

ghostbin.com/paste/jpw4v

is this a troll? post github

doesnt work...

3/10 larp

try this:
0bin.net/paste/6SEgBoxn5BsiewOG#C5UF4dH7npccjhQF5nNRwwRuPIzQgTsWtRpptifYhMW

>0bin.net/paste/6SEgBoxn5BsiewOG#C5UF4dH7npccjhQF5nNRwwRuPIzQgTsWtRpptifYhMW


Wtf... my Links are all gone

all I can say is that it the script works in a program called metatrader4 and it's written in c++

90 LOC. must be great.

this lol

AAAAAAAAAAAAHHHHH WHAT HAVE YOU DONE TO MY LINKIES

then use it there

there is btc on mt4

checked and thanks - I'll try to learn from this.
Also there appears to be a large amount of functions and application logic missing from this.
Most of the functions are obvious: iHighest, iLowest, SendMail, SetIndexStyle, etc..

But the main issue is CandleStickCheckLogic:
It never returns true unless there is more logic elsewhere, missing from this.

I have mt5 i'll try it

what's that?

meta trader has built in functions like "ihighest" which is referencing code from from somewhere else in metatrader which is why the LOC is 90

Tried adding it to my tradingview chart, didn't work.

It's not as successful as you think. Those signals are given on candle close, not candle open.
I've only skimmed the code, but it looks like it just triggers on abnormally large moves.
Looks pretty simple for you to implement in any language. The actual kernel of real trading logic is probably 3 lines of python.
Looks like "Bars" is a global variable set elsewhere, it's the data input.
90 Lines of code. He's saying it's not a very complex or sophisticated algorithm.

it only works on metatrader 4

i have mt4 too. I am new to it, how do i use a script on it?

Maybe profitable if you have a super low latency?

I have other scripts I stole from my boss

Attached: stole 2.png (879x348, 34K)

Doubt it - Those signals in OP pic related are precise enough that latency wouldn't matter, and the interval he's looking at is way larger than HFT territory.

For all you sub 100 IQ brainlets that dont realize this is just the main class, and doesnt actually have any of the function defintions, this script is practically useless without the function definitions.

it is an indicator not expert advisor

looks like it repaint to me.

Most of the function definitions are obvious utilities from meta trader.
There is a substantial bit of logic missing, however.

As OP has said twice already, it hooks into metatrader 4.

also wondering if this could be implemented on crypto (i know i could but im a brainlet and have no coding background)

github.com/vhcandido/GA-currency-strength

some py head could make a fast fix to make it work on mex data? public.bitmex.com/?prefix=data/trade/

I created a telegram chat, join so we can collaborate:
================
t.me/joinchat/AAAAAEZLJNqcrrYvOC7_jg

>Abandoned github with an empty readme about genetic algorithms
Ha.

pls, dont make yourself look like a fool

github.com/vhcandido/GA-currency-strength/blob/master/slides/presento.pdf

>90 LOC
>written in c++
literally why. why not just use python since it has c-bindings anyway.

If its profitable why would you share it.

I am not a programmer, I am a stock broker by trade so I am not that knowledgeable but I have some basics

Thanks

what's your job? how did you manage to steal it?

oh just saw this

Anything that's been public for 2 years and unupdated for 18 months is obsolete. Trading algorithms have a short shelf life.

>He still dont understand what a GA is

whatever

on the telegram I posted the mql4(metatrader 4 reference guide for bars, ihighest, ilowest, ect

You're right, but the fact that the 30th generation resulted in the whole population earning the same dollar amount indicates overfitting. GA is great, but I'm not convinced he's done it right from this, or that it doesn't come without caveat.

Unless metatrader provides the logic for making money as well, youre still a brainlet.

It's literally in the fucking name what kind of retard do you think I am. They're a cute hobby but in the majority of cases less useful than just doing it yourself.
Post it here my patience extends to this thread and no further.
Tiresome. The actual trading logic is there and clear. It's probably expressable in two short sentences, depending on the exact behavior of iHighest and iLowest. I'm waiting for OP to post their specs here so I can write it out for him and tell him to go learn python and write it up in three lines.

Its the best starting point i could find out there. Noone its going to share a blackbox, i have already some ideas to fight overfitting (more data, GA's for each tradding pattern etc),
i just need the programming skills

docs.mql4.com/predefined/bars
docs.mql4.com/series/ihighest
docs.mql4.com/customind/indicatorcounted

I’m a C++ developer. I can translate it to Python for you in exchange for access to the code. I can’t guarantee the Python version would work as well since Python is slow as fuck.

[email protected]

it might be but I can see it is calculating Fibonacci just from browsing the source code

>Comp sci Dunning Kruger syndrome detected.

I'll take it

fuckk I can't use scripts for the MT4 demo

Attached: 1506097350432.png (400x416, 137K)

there are different kind of scripts mt4 recognizes,
this is a indicator script, save it as a .mq4

So it works exactly how you'd expect and the _20 suffix is just a red herring. Great omen.
So, in english:
>sell if this candle has the greatest increase in the per-candle high over the past 24 candles
>buy if this candle has the greatest decrease in the per-candle low over the past 24 candles
That's it. Surely you can cram that into a couple lines of whatever python trading bot you're thinking of using.
Do you actually have a point or are you attempting to troll to cover your lack of one?

have a look at the second script I stole from my boss. it has some fib channels that are more complicated:


0bin.net/paste/mzrwzuFOqLcdrbfl#ublO5Uq5N84lUVEt1QX1-u3QMWT8ZOJIJSkdHJ8sMtS

Attached: stole 3.png (880x349, 33K)

Absolute dogshit repainting piece of shit.

Looks more like 4th degree polynomial regression. But I'm not digging through 600 lines of decompiled code to look closer.

its really good, I avoided getting dumped on every time this bear market because the this indicator

bump what is this

>its my thanks for shilling neo back in the day

here is the new telegram group:
t.me/joinchat/HKCCMxcymPEmg-a7_YlUsw

This is a generic trashy indicator, coming from a guy who's been into forex for 2 years now and it's basically my only income. Yes, Im good at it.

prove it

guys seriously please don't post this stuff publicly, some of us are still vesting

There is nothing here of value.

Also, I just noticed, these buy/sell points
Don't match up at all with the algorithm in the code, summarised here
So I don't know what's going on. Maybe that image is from a different indicator.

my boss is jewish and is an asshole

Yeah, I know, tripleposting.
These are the points I meant. They're not at their respective max/min candle top/bottom moves.

I think he has it wrong desu

Which he?
He (your boss) set the code up wrong?
He (me) summarised the algorithm wrong?
He (you) posted the wrong image for that indicator?

I stole the code using a program called Ex4-to-MQ4 decompile

the original variables were a garbled mess so I changed the variables to make more sense. if you are curious here is the original source code.

0bin.net/paste/1uqxAg- Gtcm fb1#A LLp7OmEdWem4PC3K7wN5eup9V5wikS-iMWHs7SIXz

Which data does it use to plot this 4th degree polynomial ie. past 24hrs, 1 week etc?
To what extent does it interpolate, ie. the next 24hrs, 1 week etc?

That explains some of the oddities, but for some reason highest_20 is still the original name for what should clearly be highest_24
>extern int GG_Period = 200;
So it's probably interpolating over 200 candles.
As to the rest, no idea.

There are 2 ways we can approach the problem, we can either recreate the code on python
Or we can use a messaging service called ZMQ to message the python when a new signal was created and it will exicute the order on binance

i'll send you an iirc msg, dont talk here, nobody but us understand.

the more complicated the shittier, trust me, programmers who doesn't know how to make simple working code doesn't have the brain to understand complexity and be successful to a real extent, and are hence a type of brainlet

I don't know what that is, just join me and the other based user's on the telegram

It's only complex because it's decompiled. We don't know what the original (commented? documented?) code looked like. The actual logic is simple.

Using this, I renamed all the variables since I disagreed with the usefulness of some of your names.
diffchecker.com/6YS5dNqv
"counted_bars" in particular is the wrong name, since it's keeping track of what bars are new.
I also found my mistake in the algorithm explantion, it's due to the pajeet-tier english in the documentation.
>Returns the shift of the maximum value over a specific number of bars depending on type.
Should be
>Returns the index of the bar containing the maximum value of a bar attribute over a range of bars
Anyway, the real algorithm is even simpler:
>Buy if this candle contains the lowest point of the 12 candles either side
>Sell if this candle contains the highest point of the 12 candles either side
So it's useless to actually trade on.
Congrats user you saw it way before I did. This indictor is useless repainting trash.

so you recon it uses the previous 200 candles (on any time frame?) to compile this 4th order polynomial, and then interpolates for the next 200 candles?

>diffchecker.com/6YS5dNqv
I am a stock broker, not a programmer

the objective is to make an order when itstead of repainting

regardless of your criticism, this updated code was helpful for entries or exists on the higher timeframe

I really don't know, I just glanced at the code for something that looked like an answer.
>the objective is to make an order when itstead of repainting
What? If it needs to see 12 bars in the future to tell you to sell, it's useless.

sounds like an improvement we can try

perhaps if possible, using the source code, turn it into an expert advisor to back test. it is profitable on on 1H +

This is the script?
C++ is not a script language though.

You can use C++ to make a trading robot, you just need cURL and openSSL to connect to the API.

The code looks awful like shit, though

Bollinger bands lmfao..

It's only profitable because it looks 12 candles into the future. Not useful for trading off.
It's decompiled.
Bollingers are based on a moving average, this is based on a quartic interpolation. Similar though.

Those indicators nested?

Trading with based on the data from 12 candle sticks is sufficient. Did you ever hear about trasing based on fractals

What?
Then that would be a different indicator. This one looks into the future, a version of it that didn't would just sell as soon as the price rose or vice versa, and would not be profitable.

what exchange do I use with this? do I just open my exchange in the browser and it does the rest?

pls help, I've never used a trading bot before

so it buys on red dots and sells on blue ones... r-right?

Thanks so much user. i was able to turn your indicator into an expert advisor and it so far has promising results

Attached: THX.png (1918x783, 111K)

nigga, this screen is from a few days ago. this thread was posted today.

pls respon

are you a stupid nigger? i am back testing from various random dates and time frames to test profitability