CALL Indicator
Forums › ProRealTime English forum › ProBuilder support › CALL Indicator
- This topic has 8 replies, 3 voices, and was last updated 6 years ago by robertogozzi.
-
-
06/29/2018 at 8:34 AM #74698
Hi all. Before I ask this question, I promise I have searched the site and am struggling to get this to work.
I am trying to call an indicator however it keeps saying
12// Conditions to enter long positionsignored, ignored, ignored, ignored, indicator1, ignored = CALL CamTDIThe indicator is the TDI which I got from this site but I cant work out how to declare values and or parameters.
The TDI indicator is below and I was hoping someone could assist or tell me what I am missing
12345678910111213141516171819lengthRSI = 13lengthband = 34lengthrsipl = 2lengthtradesl = 7r = rsi[lengthrsi](close)ma = average[lengthband](r)offs = (1.6185 * std[lengthband](r))up = ma+offsdn = ma-offsmid = (up+dn)/2mab = average[lengthrsipl](r)mbb = average[lengthtradesl](r)lineup = 75linemid = 50linedown = 25RETURN lineup as "line up", linemid as "line mid", linedown as "line down", up coloured(0,0,255) as "up", dn coloured(0,0,255) as "dn", mid coloured(255,165,0) as "mid", mab coloured(0,255,0), mbb coloured(255,0,0)06/29/2018 at 8:59 AM #7470406/29/2018 at 9:01 AM #7470506/29/2018 at 9:05 AM #7470906/29/2018 at 9:07 AM #7471106/29/2018 at 9:56 AM #7472606/29/2018 at 10:08 AM #74728To get returned values you simply have to:
1lineup,linemid,linedown,up,dn,mid,mab,mbb=CALL CamTDI //or x1,x2,x3,x4,x5,x6,x7,x8=CALL CamTDI or ignored,ignored,x3,x4,x5,x6,x7,ignored=CALL CamTDI (choose the values of interest for you)If, instead, you want to change the values passed on to the indicator, then you have not to declare them inside the indicator as static variables, but declare them from within ProBuilder clicking on the upper left spanner and then iserting the names of the variables in the desidered order (comment them out in the code), then call it with either constants or variables:
1234567lineup,linemid,linedown,up,dn,mid,mab,mbb=CALL CamTDI(13,34,2,7)// orv1=13ve=34v3=2v4=7lineup,linemid,linedown,up,dn,mid,mab,mbb=CALL CamTDI(v1,v2,v3,v4)documentation will be of further help, as Vonasi suggested.
06/29/2018 at 11:11 AM #7475406/29/2018 at 11:16 AM #74759You can import the attached file.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on