simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
I think that in one EA there should be only one function that manipulates the SL. And if there’s a good reason for two different functions doing so (one trailing stop function and one break even function) we’ve got two possibilities: either implement some sort of communication protocol between those functions so they can’t work against each…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Great work:
I tested it, and after activating DLL import
it displayed a line, except for timeframe M1. When placed on an M1 chart, every second indicator buffer ImpactBufferis empty, so no line is displayed. I failed to find the reason in 5 minutes, so I’ll just report.One basic question: why do you exclude bar zero in your main loop in…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Great work:
I tested it, and after activating DLL import
it displayed a line, except for timeframe M1. When placed on an M1 chart, every second indicator buffer ImpactBufferis empty, so no line is displayed. I failed to find the reason in 5 minutes, so I’ll just report.One basic question: why do you exclude bar zero in your main loop in…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
One more thing: for a more elaborate example of how to use structures in practice, just study the latest news calendar version fuzzy posted lately.
s.
smallcat replied to the topic ATR Channels Indicator in the forum Indicator discussion 10 years, 6 months ago
Thanks Lowphat
.. Will test this too …smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Hi Simplex,
Thanks a lot for this post and post #11279, very good and clear explanation … Easy to understand the reason

And the code formatting works well, including the indent.
Thank you very much Simplex …

smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Hi Simplex,
Thanks a lot for this post and post #11279, very good and clear explanation … Easy to understand the reason

And the code formatting works well, including the indent.
Thank you very much Simplex …

simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Great!
As I posted somewhere else in this forum, I made the first steps of my ‘coding career’ using IBM punchcards and a language named FORTRAN 77 (now it’s up to you to make a guess about my physical age
) Anyway, OOP was not yet invented in those times.Until now, I failed to get a good grip on the OOP approach. An experienced OOP tutor…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
One additional remark for those who are not familiar with the concept of complex data types: in my above example, I only used structure members of type double. Please note that this could be any data type:
struct trailingStopParameters {[Read more]
double trailingDistance; // trailing distance
double trailingStep; // tra…simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
@smallcat and everybody else interested:
Maybe try to change your view on our community project for a short while: consider we’re not only coding one EA, but a collection of flexible and exchangeable trading software modules instead. The overall goal of these modules should be to facilitate coding an EA, and the EAs which are the result of our…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Great Fuzzy … Thanks for your hard work

smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
This is nice G … but we must make sure that in each Function, there is a “rule” so they are not opposing each other all time. Lets say Function A moves the SL to level X , then Function B (based on its logic) moves the SL to level Y. After some seconds, Function A moves it again to level X … a endless dynamic moving that can cause our M…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
This is nice G … but we must make sure that in each Function, there is a “rule” so they are not opposing each other all time. Lets say Function A moves the SL to level X , then Function B (based on its logic) moves the SL to level Y. After some seconds, Function A moves it again to level X … a endless dynamic moving that can cause our M…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Adding adaptive MA & clear Signal to the Channel on M15. Higher TF is set to M30 in example. Promising of a good result (not forward testing yet) …

smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Hi Simplex,
Could you please give reason of using limited global variables ? As we know it is a good choice to call some result from other file (it is better, compared to using database just to access some small data) … Is it because of security reason ?
Thanks
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Hi Simplex,
Could you please give reason of using limited global variables ? As we know it is a good choice to call some result from other file (better as comparison to a very small data in a database) … Is it because of security reason ?
Thanks
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
I absolutely agree:
That would also lead to a well-structured design based on exchangeable modules instead of a monolithic design that’s getting harder to manage with each additional feature.
To make single modules exchangeable, it’s also required to refrain from any use of global (input) variables inside those functions. Every function should…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
I absolutely agree:
That would also lead to a well-structured design based on exchangeable modules instead of a monolithic design that’s getting harder to manage with each additional feature.
To make single modules exchangeable, it’s also required to refrain from any use of global (input) variables inside those functions. Every function should…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
I absolutely agree:
That would also lead to a well-structured design based on exchangeable modules instead of a monolithic design that’s getting harder to manage with each additional feature.
To make single modules exchangeable, it’s also required to refrain from any use of global (input) variables inside those functions. Every function should…[Read more]
gg53 replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
My preference is that all functions be independent, for user chice which one to implement. Later we’ll issue guidelines of the implication of each and the mutual effect, if any.
While In Trade, it preferably should look like this:
If InTrade()
TrailingStop();
BreakEven();
TrailingProfit();
etc…
ExitTrade(…on opposite signal…before…[Read more]
- Load More