Visit our COVID-19 site for latest information regarding how we can support you. For up to date information about the pandemic visit www.sacoronavirus.co.za.

bs-regular
bs-extra-light
bs-light
bs-light
bs-cond-light-webfont
bs-medium
bs-bold
bs-black

Community


Share knowledge. Ask questions. Find answers.

Online Share Trading

Engage and learn about markets and trading online

Programming code

Reply
Not applicable
Hi is there anyone of you that understand programming code ?
0 Kudos
18 REPLIES 18
SkarlakenKoos
Frequent Contributor
/* I so know that this code won't be formatted anymore :'( */ int main(void) { int i; prinf("Unfortunately yes...\n"); printf("Something I can help with?\n\n"); for (i=0; i<80; i++) printf("*"); }
0 Kudos
SkarlakenKoos
Frequent Contributor
Dammit... I hate computers!! HATE THEM HATE THEM HATE THEM!! *breath in-breath out*... please don't worry... doctor says i'm getting much better.
0 Kudos
Shard
Super Contributor
Depends on the language
0 Kudos
Werner_1
Super Contributor
yip, depends on the language, they're all different to some degree
0 Kudos
Not applicable
ok going to try copy and paste it here
0 Kudos
Not applicable
Morning Star Detects the 'Morning Star' candlestick formation. This indicator returns one when a morning star is detected and 0 the rest of the time. You can adjust the size factor for dojis and long candles. The size to be used depends on the volatility of the security. To diminish restrictivity of Dojis, reduce the value in the parameters (5 by default). To increase the necessary size of a candle for it to be considered 'long', reduce the related parameter (2 by default). Parameters Doji Size (atrDoji = 5) Long Candle Size (atrLongue = 2)
0 Kudos
Not applicable
the code to follow
0 Kudos
Not applicable
c11 = (Close[2] < Open[2]) AND (ABS(Close[2] - Open[2]) > AverageTrueRange[14](Close[2])/atrLongue) c12 = c11 AND (ABS(Close[1] - Open[1]) < AverageTrueRange[14](Close[1])/atrDoji) AND Open[1] <= Close[2] c13 = c12 AND (Close > Open) AND (ABS(Close - Open) > AverageTrueRange[14](Close)/atrLongue) AND (Close >= Open[2]) RETURN c13
0 Kudos
cfm
Super Contributor
Are you looking for an explanation of the code, or a rewrite in a difference language?
0 Kudos
Not applicable
I have over 500 of these from Aroon to zigzag formation i can load to my platform but this is greek to me lol
0 Kudos
Not applicable
as far as i understand, the parameter have to be defind in the code
0 Kudos
cfm
Super Contributor
You can get explanations of candlestick patterns from a lot of web sites. http://www.candlesticker.com/Default.asp being one of them. The Morning star is explained there as well (http://www.candlesticker.com/Cs59.asp).

Basically, the function will return true if the picture looks as explained in the web site. It has two scaling parameters to help you define what is considered a long candle and what is a short candle. I think there is one mistake in there. The last statement (Close >= Open[2]) should probably be (Close >= Close[2]).
0 Kudos
cfm
Super Contributor
I only know how to change parameters in AmiBroker. There you right click on the chart and select parameters and then change it(, but it must first be defined as a parameter in the formula). But your code is not AmiBroker code, so I don't know.
0 Kudos
Not applicable
CFM i know what it is, Would like to install these codes to my platform, the platform as a building app for code, in this case it would outo detect the formation for me
0 Kudos
cfm
Super Contributor
Sorry. The code is not AmiBroker code, so I can not help you getting it installed.
0 Kudos
Wizard
Super Contributor
The information system that u have is so user unfriendly. The parameters u suppose to change on the user interface and not dig inside the programming code itself. This is not year 1985! Leave that for the IT specialist that's why they get paid so much!
0 Kudos
Jobarshares
Contributor
From what platform/coding language/program is this? I would like to get some of those 500 formulas you're talking about.
0 Kudos
_nova
Super Contributor
Hennie? This isn't code so much as it's boolean logic (similar to 'woord sommetjies') I use similar systems in my Omnitrader and eSignal platforms. The parameters that appear like [2] usually means to use the value from the second candle away from the current one to calculate the formula associated etc. I'll have a look at the logic set and try to figure it out. This looks like a fairly complex one.
0 Kudos