I have attached the Ehlers Fisher Transform TD.mq4 indi that I converted to TDesk compatibility for wavegarrick and co (http://www.stevehopwoodforex.com/phpBB3 ... 18#p163218) I have rationalised some of the code here and added a few more comments, so use the version attached here so the line numbers match – the indi's workings are the same.
Doing a search for “// TDesk code” will take you to each of the four steps required for the conversion.
Step 1:
Line 23 includes the TDesk Include file at compilation time.
Step 2:
This takes you to line 103, inside the init() function. This is OnInit() in more up-to-date indi's. This tells TDesk which indicator is sending information; it needs any identifying name that is different to all other indicators on the chart.
Step 3:
This takes you to line 121 inside deinit(), or OnDeinit() in up-to-date indicators. This deletes the relevant signals from TDesk if you close a chart or delete the indi.
Step 4:
This is where life gets sticky if you are as blank about indi code as I am. You will be at line 278.
I have defined the variable 'Final' to hold a value that tells the indi what signal to send to TDesk. This indi holds a value of >0 or <0, depending on whether the result of its calculations are positive or negative but we only need the result of the latest calculation. This appears to be held in buffer1[limit]. I have 2,000 bars on my charts, so limit = 1999 and I confirmed this by adding a temporary Alert(limit) to the code. Temporary alerts can be very helpful when you are trying to work out what is going on.
You will find step 4 a doddle if you understand indi code. The rest of us might need some trial-and-error time.
Start converting to your heart's content.