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
Importing ELA problem
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Two identical PaintBar code imported differently depending
The above PaintBar code compiles successfully both on TS8 and TS2ki.Input: EXPAND(2.00);
IF RANGE>RANGE[1]*EXPAND Then Begin
Plot1(High,"High");
Plot2(Low,"Low");
IF CheckAlert Then Alert;
End;
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 440 times
-
- PBSAMPLE.ELA
- (2.75 KiB) Downloaded 452 times
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
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.
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.
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.
- TJ
- Posts: 7752
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2228 times
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
Below is the code of "TD Waldo#3 Expand" after import.
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:
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]
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:
What do you mean "have same file name"?pls note that after importing the first file, I renamed it before importing the second one because they have the file same names.
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]
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
HaeRim,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.
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.
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.
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.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007