gg53 replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Adding Commission distort the whole TRAILING process in MT4, since it is not included in the trailing calculation (besides the fact that the logic isn’t finished yet).
To simulate commission you should add it to the spread and multiply it by the lot size.
G.
gg53 replied to the topic Trading made REALLY Simple in the forum Development 10 years, 5 months ago
actualRisk will later be used mainly for user display purposes.
G.
MTH2014 replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Hi Brother, zero divide should involving division operation, while in your code example this is multiplication operation, so the result could be zero but not zero divide error.
From my noob perspective, before that line of code you could make sure by ‘if’ condition like;
if ( (High - Low) != 0.0 )to protect zero result condition
Hope it…[Read more]
MTH2014 replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Hi Brother, zero divide should involving division operation, while in your code example this is multiplication operation, so the result could be zero but not zero divide error.
From my noob perspective, before that line of code you could make sure by ‘if’ condition like ‘if ( (High – Low) != 0.0 )’ to protect zero result condition
Hope it h…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Hi all,
I got this line of code from other thread :
double V = ( MathAbs(Open – Close) * MathPow(High – Low, -1) ) * Volume;
Just want to make sure about zero devide. If the result of (High-Low)==0.0, then the equation MathPow(High-Low, -1) will cause error. Is it right?
@pipatronic : Thanks for info about Obv Div.

smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Hi all,
I got this line of code from other thread :
double V = ( MathAbs(Open – Close) * MathPow(High – Low, -1) ) * Volume;
Just want to make sure about zero devide. If the result of (High-Low)==0.0, then the equation MathPow(High-Low, -1) will cause error. Is it right?
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
Welcome mate. I haven’t tested v 1.3 yet (will test it soon), but as you know some other features are not implemented yet in this version . But looking at your result (although it is still getting some loss), yes it is promissing. I am sure after all requirements are fullfill (peak trough, osc, trend, etc), we will see a much better result. Try…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 5 months ago
1) will need big space (using many different file name, although we can delete it later, but that is extra work)
2) ==
3) may be can reduce conflict of read⁄write in number 2)
4) i think should be ok … the master process can be changed⁄replace by slave process after master’s job is finish (a slave becomes a master process if nee…[Read more]
gg53 replied to the topic Filtering by Volume in the forum Trading Systems Discussion 10 years, 5 months ago
I’ll respond and relate to that AFTER the basic EA skeleton in “Tradind made REALLY simple” will be finished.
G.
smallcat replied to the topic Filtering by Volume in the forum Trading Systems Discussion 10 years, 5 months ago
[ quote=10922]
…. Alternative approach to the above mentioned: use an FIR filter instead of IIR, e.g. an ALMA. Has anybody tried that? s. [/quote] Never test it, but just got a small function that can be converted to mql4 i think : http://www.financial-hacker.com/trend-delusion-or-reality/
double ALMA(double &Data, int Period)
{
double m =…smallcat replied to the topic Filtering by Volume in the forum Trading Systems Discussion 10 years, 5 months ago
Never test it, but just got a small function that can be converted to mql4 i think : http://www.financial-hacker.com/trend-delusion-or-reality/
double ALMA(double &Data, int Period)
{
double m = MathFloor(0.85*(Period-1));
double s = Period/6.0;
double alma = 0.0, wSum = 0.0;
int i;
for (i = 0; i < Period; i++){
double w =…smallcat replied to the topic Filtering by Volume in the forum Trading Systems Discussion 10 years, 5 months ago
Never test it, but just got a small function that can be converted to mql4 i think : http://www.financial-hacker.com/trend-delusion-or-reality/
<pre style=”box-sizing: inherit; font-size: 13px; font-family: Inconsolata, monospace; border: 1px solid #d1d1d1; line-height: 15px; margin-top: 0px; margin-bottom: 1.75em; max-width: 100%; overflow: auto;…
smallcat replied to the topic Deep Q Forex: Basic Discussion in the forum
Deep Q forex 10 years, 5 months agoThis is interesting. Some kind of nnea neural network that can be used as a pr3dictor ?
smallcat joined the group
Deep Q forex 10 years, 5 months agosmallcat replied to the topic Volume Zone Oscillator: Discussion in the forum Indicator discussion 10 years, 5 months ago
Happy New Year to all of you, the penguins …
This is nice discussion. I tried to implement the code based on Anti’s idea at other thread :if ((high – low) != 0) { res = (MathAbs(close-open)/(high-low) ) * Vol }
else { res = Vol }I am not sure, it is a right approach or not. And i do not so clear about the code above : if(Close < Close) , …[Read more]
gg53 replied to the topic Trading made REALLY Simple in the forum Development 10 years, 5 months ago
That’s why I said Function (?)….
It can also be an external call.
…”BeforeTrade/AfterTrade (minutes) means number of minutes to next event and number of minutes after previous event? “… –> Yes.
G.
gg53 replied to the topic Trading made REALLY Simple in the forum Development 10 years, 5 months ago
Functionality.
We want to call that function (?) with user params like BeforeTrade/AfterTrade (minutes), Medium/High impact, Currency pair relevance.
G.
gg53 replied to the topic Volume Zone Oscillator: Discussion in the forum Indicator discussion 10 years, 5 months ago
That’s not the way I’ve implemented my MOD’s.
I agree that the 40 level is great and accurate.
Trying to find “more” signals usually leads to less acuurate indicators, although it is annoying to see missed “obvious” opportunities.
The indicator is showing Volume based opportunities, and you have to accept the fact that there are other ones,…[Read more]
gg53 replied to the topic Volume Zone Oscillator: Discussion in the forum Indicator discussion 10 years, 5 months ago
That’s not the way I’ve implemented my MOD’s.
I agree that the 40 level is great and accurate.
Trying to find “more” signals usually leads to less acuurate indicators, although it is annoying to see missed “obvious” opportunities.
The indicator is showing Volume based opportunities, and you have to accept the fact that there are other ones,…[Read more]
gg53 replied to the topic Trading made REALLY Simple in the forum Development 10 years, 5 months ago
MT4 BackTests relies on actual data (if exist…) of Open, High, Low, Close (OHLC) of each bar.
EVERYTHING that is missing from the above is Randomized, which means all ticks within that data are randomized.
The MAX accuracy that you can get is getting perfect history of M1 OHLC of that test period and TimeFrame. Even that is hard to get.
On…[Read more]
- Load More