Importing ELA problem

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Importing ELA problem

Postby 2haerim » 24 Jul 2008

PLEditor seems not read ela file when the first statement is Input and the second statement is Plot1.

For example, the EL script from ELA file is:

Input: LENGTH(8),OB(60),OS(-60);
Plot1(TDREI(LENGTH),"REI");
Plot2(OB,"OB");
Plot3(OS,"OS");
IF CheckAlert Then Begin
IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2
or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3
or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3
Then Alert;
End;


Then the imported result is:

Input: LENGTH(8),OB(60),OS(-60);
REI(TDREI(LENGTH),"REI");
OB(OB,"OB");
OS(OS,"OS");

This is wrongly imported.

Please check

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 24 Jul 2008

As I mentioned in our chat, nothing of the kind when we imported those studies. Also, you would need to rename the variables that are using the reserved word names.

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Two identical PaintBar code imported differently depending

Postby 2haerim » 24 Jul 2008

Input: EXPAND(2.00);
IF RANGE>RANGE[1]*EXPAND Then Begin
Plot1(High,"High");
Plot2(Low,"Low");
IF CheckAlert Then Alert;
End;
The above PaintBar code compiles successfully both on TS8 and TS2ki.

I've exported them to both PBSample.ELD and PBSample.ELA file. Both have two identical PaintBars which have different names only. One is named as PBSample and the other has name "TD Waldo#3 Expand". Both PaintBars use no reserved words as variables as you can see.

Then I tried to import both PBSample.ELD and PBSample.ELA file.

PBSample.ELD was successfully imported.

However, when importing PBSample.ELA, the PBSample PaintBar was ok, but the other "TD Waldo#3 Expand" PaintBar failed in importing.

This is clearly a bug in importing ELA type file. ELA importing behaves differently depending on the names of PaintBars.

Check again please.
Attachments
PBSAMPLE.ELD
(4.08 KiB) Downloaded 430 times
PBSAMPLE.ELA
(2.75 KiB) Downloaded 436 times

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 31 Jul 2008

HaeRim,

In the ELD file, both functions are open source. In the ELA file, "TD Waldo#3 Expand" is source protected and cannot be imported. This isn't a bug.

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 31 Jul 2008

No, you need to test it again. I guess you tested using wrong files.
Please download the attached files in the previous post.

None of the attached PBSample.ELD and PBSample.ELA are source-proteced at all. They just have the following simple script. Nothing special.
Input: EXPAND(2.00);
IF RANGE>RANGE[1]*EXPAND Then Begin
Plot1(High,"High");
Plot2(Low,"Low");
IF CheckAlert Then Alert;
End;

The only difference is the name of the saved study in ELD and ELA file.

However, when you import them, one succeeds and the other fails.

Someone else download the PBSample.ELD and PBSample.ELA file and try to import them to verify my assertion. If you get the same results, please let me know.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 31 Jul 2008

I am using PE v 3

I have imported both ELD and ELA files successfully.
I have compiled both PBSample and TD Waldo#3 Expand indicators successfully.

pls note that after importing the first file, I renamed it before importing the second one because they have the file same names.

Hope the above helps.

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 01 Aug 2008

I also have tested this on PE V3 and V4. The results were the same.

The original code for "TD Waldo#3 Expand" from ELA is
Input: EXPAND(2.00);

IF RANGE>RANGE[1]*EXPAND Then Begin
Plot1(High,"High");
Plot2(Low,"Low");
IF CheckAlert Then Alert;
End;

Below is the code of "TD Waldo#3 Expand" after import.
[LegacyColorValue = TRUE];

Input: EXPAND(2.00);

RANGE>RANGE[1]*EXPAND(High,"High");
High(Low,"Low");

IF Low Then
Alert( "" );

As you see clearly, the bold typed code is improted wrong.
Are you saying that you didn't get this code when importing?

You said:
pls note that after importing the first file, I renamed it before importing the second one because they have the file same names.
What do you mean "have same file name"?

No matter how many times I import, I get the same wrong code. I've tested on several PCs and the same results.


Am I the only one having this problem?[/quote]

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 01 Aug 2008

No, you need to test it again. I guess you tested using wrong files.
Please download the attached files in the previous post.

None of the attached PBSample.ELD and PBSample.ELA are source-proteced at all. They just have the following simple script. Nothing special.
Input: EXPAND(2.00);
IF RANGE>RANGE[1]*EXPAND Then Begin
Plot1(High,"High");
Plot2(Low,"Low");
IF CheckAlert Then Alert;
End;

The only difference is the name of the saved study in ELD and ELA file.

However, when you import them, one succeeds and the other fails.

Someone else download the PBSample.ELD and PBSample.ELA file and try to import them to verify my assertion. If you get the same results, please let me know.
HaeRim,

We tested the codes that you posted on the forum. The function in the ELA file that I'm referring to was shown as source protected in TS, not only in MultiCharts.

Regards.

SUPER
Posts: 646
Joined: 03 Mar 2007
Has thanked: 106 times
Been thanked: 84 times

Postby SUPER » 01 Aug 2008

2haerim,

I imported both format of codes successfully into powerlaunguage editor and the codes are identical, it sounds like a problem inherent to your pc....no criticism here just trying to help out!

Regards
Super

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 01 Aug 2008

Thank you Super

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 01 Aug 2008

I think I found the reason why I fail, but others don't.

The PBSample.ELA was created in EasyLanguage 2000i editor and exported again without any protection at all.

When it is being imported into EasyLanguage 2000i Editor, everything is ok.

But when it is being imported into MC PLEditor or TS8 ELEditor, the study named "TD Waldo#3 Expand" is taken as a source-proteced or a strategy group.

So it seems that ELA file is not perfectly imported into TS8's ELEditor even though it is just a simple code without any protection at all.

That's why I and others see it differently when imported.

Sigh. We still live in the world of ancient TS2000i.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 01 Aug 2008

HaeRim,

As you see the problem isn't on MC end. If the code won't import/work correctly even in TS.


Return to “MultiCharts”