|
本帖最後由 joshsmi 於 14-11-29 04:05 編輯
See dynamic variables
- for( i = 1; i < 6; i++ )
- {
- VarSet( "HHV" + i, HHV(O, i ) );
- }
複製代碼
Then either use VarGet to call them back
- for( i = 1; i < 6; i++ )
- {
- Plot( VarGet( "HHV" + i ), "HHV" + i, colorRed, styleline );
- }
複製代碼
or picking single variable i.e
- Plot( HHV1, "HHV1", colorRed, styleline );
複製代碼
etc.
On the other and if you already have a ready list of variables like
- HHV1 = HHV(Open, 1);
- HHV2 = HHV(Open, 2);
- HHV3 = HHV(Open, 3);
- HHV4 = HHV(Open, 4);
- HHV5 = HHV(Open, 5);
複製代碼
then you can also call those ones via VarGet, i.e.
- for( i = 1; i < 6; i++ )
- {
- Plot( VarGet( "HHV" + i ), "HHV" + i, colorRed, styleline );
- }
複製代碼
|
評分
-
查看全部評分
|