Machine learning in trading: theory, models, practice and algo-trading - page 1860
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
why not replace several if( condition_1 ) if( condition_2 )
to if( condition_1 && condition_2)
it's easier to look for closing parentheses, the code is faster to read, in general, more convenient, imho.
This seems to make it even harder. The code in python first generates a python tree calculation function from tree structure, then I modify it into a C-like function.
it looks like it will be even more complicated. The python code first generates a python tree calculation function from the tree structure, then I rework it into a C-like one.
generate intermediate code...stack machines a la Forth, are born capable of micro-optimization
it looks like it will be even more complicated. The python code first generates a python tree calculation function from the tree structure, then I redo it in C-like.
couldn't find yesterday's graph in the thread
there, i think you need to rotate it to -90 degrees and parsing along the lines
it doesn't matter what to put in if() or &&
I couldn't find yesterday's graph in the topic
there, i think it needs to be rotated by -90 degrees and then parsed along the lines
and what to put in if() or && when parsing makes no difference
Initially it looks like this
generate intermediate code...stack machines, a la Forte, are born with the ability to micro-optimize
How many books do you have to read? ) because of one parenthesis
You just need a logical solution. Count the number of indents before (if), for example(How many books do you have to read? ) because of one bracket
You just need a logical solution. Count the number of indents before (if), for examplei.e. the whole task is to parse what is generated in the post above ?
SZY. and of course the question, why they indent instead of a couple of tags (brackets), but it is clear only to pythonists :-) it would not be a problem
that is, the whole task is to parse what is generated in the post above ?
ZS. and of course the question, why you need to indent instead of a couple of tags (brackets), but only pythonists know that :-) there would be no problem
yes
because it's python, that's why it's spelled that way ) it's easy to spar with a python function, there are no parentheses
the library returns the tree in this format
Initially it looks like this
you can't rotate
here by the position (the iconic place)|---
You'll have to make something up.
SZZH Perhaps in Excel it will be easier to do
you can't rotate it.
there's a position here...
You'll have to make something up.
It may be easier to do something in Excel
I want it in python
i want to copy the ready TS to mql.
I'll think of something... maybe someone has faced
yes
because it's python, that's why it's spelled that way ) it's easy to spar to a python f-function, there are no brackets
the library returns the tree in this format
initially, the counter (in the stack) equals 1
for each line in the file :
you count the number of "|" sticks at the beginning of the line, ignoring spaces (and decorators "-") and up to the first letter/digit
if more than the counter, it's { and the counter is incremented
if less then } and decreased
---
adderror handling and loop exit to taste