Re: Coding Help

1681
Hello, could someone help me , i have an idea
If I may, with the slightest forth-impressions of persistence that my attitude shall emit, share you this path-route, with all its intricacies that I strive to unravel. I have managed to construct a draft that integratively incapsulates the first major step of the whole process, draft v_1, with some aberrant fluctuations of extbuffers. Nevertheless, I have currently stopped at the second major step (‘stopped’ ≠ ‘ceasing the progress’), for I sense that I have already accomplished ‘much’, and this ‘much’ is ever ‘not enough’ to be a priori quantified as such. I contend to elicit the major steps of this project, along with the array list of its sequent substeps :
Step 1 Integrating the Wavelet Decomposition Method
1. Changing the frequency domain from [0, -N] to [π, -π]
2. Normalising the transform procedure as fitting trigonometric series with Hermitian symmetry
3. Identifying local maxima and local minima
4. Sorting and re-indexing both the local maxima (descending manner) and local minima (ascending manner)
5. Computing ωn (magnitude proper) values for local maxima and local minima (the magnitude represents the strength of the signal at a given frequency) & setting boundaries for the min-level
The draft v_1 incorporates this step so far.
Step 2 Wavelet Filter Bank
6. Defining constants and arrays for parameters
7. Scaling function and Wavelet fuction
8. Defining the function for β
9. Computing tau n
10. Determining y
The draft v_2 incorporates this step so far.
Step 3 mainly consists of the reconstruction phase of the decomposed signals
11. Inversing wavelet transform: I need to implement the inverse wavelet transform to reconstruct the signal from the wavelet coefficients.
12. Combining scaling and wavelet functions: I need to use the scaling function and wavelet function to combine the contributions of different segments.
13. Iterating over segments: I need to ensure that it iterates over all segments to collect and combine their contributions properly.
14. Outputting the reconstructed signal: to store or output the reconstructed signal for further analysis. (NewreconstructedBuff)
Would anyone assisst me ?


Re: Coding Help

1682
hello i am hoping to get some assistance with this. i am attempting to convert an indicator into code for ea signals and it is giving me a little trouble
the concept is, i am trying to convert the indicator to signals for use in an ea confirmation filter that uses the cross of the Trix line form below or above(buy or sell signal)

i am trying to line up the signals form the indicator and the converted EA function verified by a print statement. so i am trying to line up the indicators dot (buy or sell) with the functions print-statement for the cross buy or sell. once i have it functioning i will move the code to the ea.
i tried limiting the functions recalculation from the whole chart to 1000 bars with a user input so it can be adjusted and i tried limiting recalculation to once per bar to mimic the indicator calculation instead of each tick.

that doesn't seem to be the issue. i am trying to get the function call and the iT3 function to operate correctly (the main body of the function and the main calculation for the T3 arrays) i tried to simplify where i could i am using basic settings so there was a getprice() function with choices i am only using my basic setting so i omitted it and replaced it with Close-i in the function call, which is the only price i am using, and what the getprice() returned.

the Close-i is only returning the value for one bar not each bar that is referenced and i cant figure out how to fix it. it may be simple. the print statement in the experts tab shows the loop counting from largest to zero like its supposed to for the reverse iteration loop for the recursive T3 formula. but there is only one value for Close-i. I thought about changing some things but could not get this working so i thought i should keep it as close as possible and ask for help to see what i should do? it is likely something a knowledgeable person is familiar with. the code from the indicator to the function is pretty close almost identical and my code is simple and straight forward with not to many lines. i try to keep it simple. the function consists of an input section(header)/calculation functions/function to check alignment/a wrapper function to organize and send data/ & the temp Ontick-that will be transferred to the EA Ontick.

Please have a look and help me get this functioning if possible. thank for you time and taking the time to read this. having somewhere to ask for help is a god send and i am super excited to getting my project together. this is my return to programing as a hobbyist in over ten years and i appreciate any help to keep me moving forward. excited about your response.

attached below is the indicator and the function i tried to convert from the indicator, i am trying to replicate the crosses(the dots buy/sell signals from the indicator) and verify the functions signals with a print statement and aligning them with the indicator. my issue seems to be getting the function call and the iT3 function to calculate correctly. if i can get the signals printing relative (just working) i figure i can implement a shift or adjust them if need be. just getting this working will be great. Thank you
i saved the indicator with the settings i am using it should match the inputs in the function.

Re: Coding Help

1683
nine wrote: Fri Oct 25, 2024 1:43 am hello i am hoping to get some assistance with this. i am attempting to convert an indicator into code for ea signals and it is giving me a little trouble
the concept is, i am trying to convert the indicator to signals for use in an ea confirmation filter that uses the cross of the Trix line form below or above(buy or sell signal)

i am trying to line up the signals form the indicator and the converted EA function verified by a print statement. so i am trying to line up the indicators dot (buy or sell) with the functions print-statement for the cross buy or sell. once i have it functioning i will move the code to the ea.
i tried limiting the functions recalculation from the whole chart to 1000 bars with a user input so it can be adjusted and i tried limiting recalculation to once per bar to mimic the indicator calculation instead of each tick.

that doesn't seem to be the issue. i am trying to get the function call and the iT3 function to operate correctly (the main body of the function and the main calculation for the T3 arrays) i tried to simplify where i could i am using basic settings so there was a getprice() function with choices i am only using my basic setting so i omitted it and replaced it with Close-i in the function call, which is the only price i am using, and what the getprice() returned.

the Close-i is only returning the value for one bar not each bar that is referenced and i cant figure out how to fix it. it may be simple. the print statement in the experts tab shows the loop counting from largest to zero like its supposed to for the reverse iteration loop for the recursive T3 formula. but there is only one value for Close-i. I thought about changing some things but could not get this working so i thought i should keep it as close as possible and ask for help to see what i should do? it is likely something a knowledgeable person is familiar with. the code from the indicator to the function is pretty close almost identical and my code is simple and straight forward with not to many lines. i try to keep it simple. the function consists of an input section(header)/calculation functions/function to check alignment/a wrapper function to organize and send data/ & the temp Ontick-that will be transferred to the EA Ontick.

Please have a look and help me get this functioning if possible. thank for you time and taking the time to read this. having somewhere to ask for help is a god send and i am super excited to getting my project together. this is my return to programing as a hobbyist in over ten years and i appreciate any help to keep me moving forward. excited about your response.

attached below is the indicator and the function i tried to convert from the indicator, i am trying to replicate the crosses(the dots buy/sell signals from the indicator) and verify the functions signals with a print statement and aligning them with the indicator. my issue seems to be getting the function call and the iT3 function to calculate correctly. if i can get the signals printing relative (just working) i figure i can implement a shift or adjust them if need be. just getting this working will be great. Thank you
i saved the indicator with the settings i am using it should match the inputs in the function.
Wouldn't it be easier to use an iCustom call from the ea to the indicator using the "strend" buffer (buffer#10)?

Re: Coding Help

1684
i am trying to hard code everything if possible. i have steered clear of i-custom for the most part. i am not very good with it and haven't had much luck with it. when i started the project i decided to hardcode everything without using i-custom. i thought it would be better for my uses, after i get it functioning on mt4, id like to convert to mt5. i- custom is likely easier and may make more sense in certain instances. i wanted to convert the trix indicator and the dmx indicator the same way was my plan. then id about have it. i think my strategy has something like 5 indicators which i thought would be a lot of icustom and i am not very good with icustom. so i thought hardcoding would be a better route for me. i have most of it together already and two of the indicators are not very complex or lengthy, easy to code and the remaining 3 a little more complex though they are all similar i figured once i got the Trix the first one the other one would likely be coded the same way. when i started my project i was wondering if i would have to hire a programmer. though i am just about finished i managed till now. if i get this part it will be close to getting completed. all thats left is to get these couple conversions and put it together.

i coded everything with a modular design the top portion is code blocks for the indicators to produce there signals then, an intermediary function to gather the signals and check for alignment and pass a buy or sell signal to the last portion which handles trade management (opening, closing, stoploss etc) most of it is already done and tested for function. i tried it with another strategy the way it is set up I can switch out the parts easily. it all works and is coded. all that is left is to get the indicator conversions to produce the desired signals. they are mostly moving average crosses - trix cross, dmx cross, for confirmation and the primary signal is a atr signal filtered with a MA - simple but effective.

i would like to stick with the hardcoding if possible though i am not very knowledgeable and am looking and open to advice. i would like to do it the way i suggested though i am a novice and not very knowledgeable about such things there is likely a better way to do some of it. i have not had any input until now and have not shared or spoken about it with anyone especially someone with more experience. let me know what you think. i started and looked around and messed with several ea's then decided it was best to code my own. the concept is a simple one to take a longer period MA (like a hull 175 or 200 period) and find a better way to enter and exit. seems simple though i like the idea way better than most of the programs i have tried. it seems to be an acurate trend following swing trader that trades during market hours. thanks for your time.

Re: Coding Help

1685
nine wrote: Fri Oct 25, 2024 6:26 am i am trying to hard code everything if possible. i have steered clear of i-custom for the most part. i am not very good with it and haven't had much luck with it. when i started the project i decided to hardcode everything without using i-custom. i thought it would be better for my uses, after i get it functioning on mt4, id like to convert to mt5. i- custom is likely easier and may make more sense in certain instances. i wanted to convert the trix indicator and the dmx indicator the same way was my plan. then id about have it. i think my strategy has something like 5 indicators which i thought would be a lot of icustom and i am not very good with icustom. so i thought hardcoding would be a better route for me. i have most of it together already and two of the indicators are not very complex or lengthy, easy to code and the remaining 3 a little more complex though they are all similar i figured once i got the Trix the first one the other one would likely be coded the same way. when i started my project i was wondering if i would have to hire a programmer. though i am just about finished i managed till now. if i get this part it will be close to getting completed. all thats left is to get these couple conversions and put it together.

i coded everything with a modular design the top portion is code blocks for the indicators to produce there signals then, an intermediary function to gather the signals and check for alignment and pass a buy or sell signal to the last portion which handles trade management (opening, closing, stoploss etc) most of it is already done and tested for function. i tried it with another strategy the way it is set up I can switch out the parts easily. it all works and is coded. all that is left is to get the indicator conversions to produce the desired signals. they are mostly moving average crosses - trix cross, dmx cross, for confirmation and the primary signal is a atr signal filtered with a MA - simple but effective.

i would like to stick with the hardcoding if possible though i am not very knowledgeable and am looking and open to advice. i would like to do it the way i suggested though i am a novice and not very knowledgeable about such things there is likely a better way to do some of it. i have not had any input until now and have not shared or spoken about it with anyone especially someone with more experience. let me know what you think. i started and looked around and messed with several ea's then decided it was best to code my own. the concept is a simple one to take a longer period MA (like a hull 175 or 200 period) and find a better way to enter and exit. seems simple though i like the idea way better than most of the programs i have tried. it seems to be an acurate trend following swing trader that trades during market hours. thanks for your time.
Hey no that's cool wish I could help you more but haven't hardcoded many indicators successfully into EA's that much to be much help for you, hopefully someone else here will be of more help.
These users thanked the author mrtools for the post (total 2):
nine, talaate


Re: Coding Help

1686
thank you , i thought it was an indexing issue but ive tried it everyway i can think of and for some reason Close-i is not returning the proper values just the value of one bar i am going to do some research and make sure i am using it correctly and see if i can figure any thing out if i can get it to work it is likely the rest of the code will function. i have found the problem i just dont know the solution yet. Close-i is not populating the correct values for the closed historical bars now i need to figure out why and how to fix it. thank you - i think next i am going to try iclose() to populate an array with data to see if that works -update- iclose() worked now to get the values on the t3 lines right and line up the print statements and i should about have it